π is the Unicode character LYCIAN LETTER Q, code point U+1028C (decimal 66188) in the Lycian block, added in Unicode 5.1. In HTML write 𐊌, and in UTF-8 it is the 4 bytes F0 90 8A 8C.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1028C |
| Decimal | 66188 |
| UTF-8 bytes | F0 90 8A 8C |
| UTF-16 (big-endian) | D800 DE8C |
| UTF-32 | 0001028C |
| HTML decimal | 𐊌 |
| HTML hex | 𐊌 |
| CSS | \1028C |
| JavaScript | \u{1028C} or \uD800\uDE8C |
| JSON | \uD800\uDE8C |
| Python | \U0001028C |
| Python by name | \N{LYCIAN LETTER Q} |
| Java, C# | \uD800\uDE8C |
| Rust, Swift | \u{1028C} |
| Go, C, C++ | \U0001028C |
| URL (percent-encoded) | %F0%90%8A%8C |
JavaScript and JSON strings store text as UTF-16, so this character takes two code units (a surrogate pair) and "π".length is 2. Python 3 strings count code points, so its length there is 1.
Properties
| Property | Value |
|---|---|
| Name | LYCIAN LETTER Q |
| Code point | U+1028C (decimal 66188) |
| Block | Lycian (U+10280βU+1029F) |
| General category | Lo: Other letter |
| Script | Lycian |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 5.1 |
Nearby in Lycian
- π U+10284 Lycian Letter G
- π U+10285 Lycian Letter D
- π U+10286 Lycian Letter I
- π U+10287 Lycian Letter W
- π U+10288 Lycian Letter Z
- π U+10289 Lycian Letter Th
- π U+1028A Lycian Letter J
- π U+1028B Lycian Letter K
- π U+1028D Lycian Letter L
- π U+1028E Lycian Letter M
- π U+1028F Lycian Letter N
- π U+10290 Lycian Letter Mm
- π U+10291 Lycian Letter Nn
- π U+10292 Lycian Letter U
- π U+10293 Lycian Letter P
- π U+10294 Lycian Letter Kk
All 29 characters: Lycian.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𐊌 (decimal) or 𐊌 (hex).
- What is the UTF-8 encoding of U+1028C?
- F0 90 8A 8C (hex), 4 bytes. In a URL it is %F0%90%8A%8C.
- How do I write U+1028C in JavaScript or Python?
- JavaScript: \u{1028C} or \uD800\uDE8C. Python: \U0001028C.
Source
Unicode Character Database 18.0.0 (Unicode License v3); HTML entity names from the WHATWG HTML Standard (CC BY 4.0). The encodings above are computed from the code point and checked against Python's encoders. How the character looks depends on your fonts.
Legal entity
Devansh Yadav
Moradabad, Uttar Pradesh
Governing law: Courts at Moradabad, Uttar Pradesh
Phone: +91 8433475698
Legal: legal@analyzeit.in