π is the Unicode character LYCIAN LETTER E, code point U+10281 (decimal 66177) in the Lycian block, added in Unicode 5.1. In HTML write 𐊁, and in UTF-8 it is the 4 bytes F0 90 8A 81.
Codes
| Where | How to write it |
|---|---|
| Code point | U+10281 |
| Decimal | 66177 |
| UTF-8 bytes | F0 90 8A 81 |
| UTF-16 (big-endian) | D800 DE81 |
| UTF-32 | 00010281 |
| HTML decimal | 𐊁 |
| HTML hex | 𐊁 |
| CSS | \10281 |
| JavaScript | \u{10281} or \uD800\uDE81 |
| JSON | \uD800\uDE81 |
| Python | \U00010281 |
| Python by name | \N{LYCIAN LETTER E} |
| Java, C# | \uD800\uDE81 |
| Rust, Swift | \u{10281} |
| Go, C, C++ | \U00010281 |
| URL (percent-encoded) | %F0%90%8A%81 |
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 E |
| Code point | U+10281 (decimal 66177) |
| 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+10280 Lycian Letter A
- π U+10282 Lycian Letter B
- π U+10283 Lycian Letter Bh
- π 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
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+10281?
- F0 90 8A 81 (hex), 4 bytes. In a URL it is %F0%90%8A%81.
- How do I write U+10281 in JavaScript or Python?
- JavaScript: \u{10281} or \uD800\uDE81. Python: \U00010281.
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