π is the Unicode character DESERET CAPITAL LETTER LONG I, code point U+10400 (decimal 66560) in the Deseret block, added in Unicode 3.1. In HTML write 𐐀, and in UTF-8 it is the 4 bytes F0 90 90 80.
Codes
| Where | How to write it |
|---|---|
| Code point | U+10400 |
| Decimal | 66560 |
| UTF-8 bytes | F0 90 90 80 |
| UTF-16 (big-endian) | D801 DC00 |
| UTF-32 | 00010400 |
| HTML decimal | 𐐀 |
| HTML hex | 𐐀 |
| CSS | \10400 |
| JavaScript | \u{10400} or \uD801\uDC00 |
| JSON | \uD801\uDC00 |
| Python | \U00010400 |
| Python by name | \N{DESERET CAPITAL LETTER LONG I} |
| Java, C# | \uD801\uDC00 |
| Rust, Swift | \u{10400} |
| Go, C, C++ | \U00010400 |
| URL (percent-encoded) | %F0%90%90%80 |
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 | DESERET CAPITAL LETTER LONG I |
| Code point | U+10400 (decimal 66560) |
| Block | Deseret (U+10400βU+1044F) |
| General category | Lu: Uppercase letter |
| Script | Deseret |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 3.1 |
Upper and lower case
- π¨ U+10428 Deseret Small Letter Long I β Lowercase
Nearby in Deseret
- π U+10401 Deseret Capital Letter Long E
- π U+10402 Deseret Capital Letter Long A
- π U+10403 Deseret Capital Letter Long Ah
- π U+10404 Deseret Capital Letter Long O
- π U+10405 Deseret Capital Letter Long Oo
- π U+10406 Deseret Capital Letter Short I
- π U+10407 Deseret Capital Letter Short E
- π U+10408 Deseret Capital Letter Short A
All 80 characters: Deseret.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𐐀 (decimal) or 𐐀 (hex).
- What is the UTF-8 encoding of U+10400?
- F0 90 90 80 (hex), 4 bytes. In a URL it is %F0%90%90%80.
- How do I write U+10400 in JavaScript or Python?
- JavaScript: \u{10400} or \uD801\uDC00. Python: \U00010400.
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