π is the Unicode character CYPRIOT SYLLABLE A, code point U+10800 (decimal 67584) in the Cypriot Syllabary block, added in Unicode 4.0. In HTML write 𐠀, and in UTF-8 it is the 4 bytes F0 90 A0 80.
Codes
| Where | How to write it |
|---|---|
| Code point | U+10800 |
| Decimal | 67584 |
| UTF-8 bytes | F0 90 A0 80 |
| UTF-16 (big-endian) | D802 DC00 |
| UTF-32 | 00010800 |
| HTML decimal | 𐠀 |
| HTML hex | 𐠀 |
| CSS | \10800 |
| JavaScript | \u{10800} or \uD802\uDC00 |
| JSON | \uD802\uDC00 |
| Python | \U00010800 |
| Python by name | \N{CYPRIOT SYLLABLE A} |
| Java, C# | \uD802\uDC00 |
| Rust, Swift | \u{10800} |
| Go, C, C++ | \U00010800 |
| URL (percent-encoded) | %F0%90%A0%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 | CYPRIOT SYLLABLE A |
| Code point | U+10800 (decimal 67584) |
| Block | Cypriot Syllabary (U+10800βU+1083F) |
| General category | Lo: Other letter |
| Script | Cypriot |
| Bidirectional class | R: Right-to-left |
| Mirrored in right-to-left text | No |
| First in Unicode version | 4.0 |
Nearby in Cypriot Syllabary
- π U+10801 Cypriot Syllable E
- π U+10802 Cypriot Syllable I
- π U+10803 Cypriot Syllable O
- π U+10804 Cypriot Syllable U
- π U+10805 Cypriot Syllable Ja
- π U+10808 Cypriot Syllable Jo
- π U+1080A Cypriot Syllable Ka
- π U+1080B Cypriot Syllable Ke
All 55 characters: Cypriot Syllabary.
Official reference
Questions people ask
- What is the HTML code for π ?
- Use 𐠀 (decimal) or 𐠀 (hex).
- What is the UTF-8 encoding of U+10800?
- F0 90 A0 80 (hex), 4 bytes. In a URL it is %F0%90%A0%80.
- How do I write U+10800 in JavaScript or Python?
- JavaScript: \u{10800} or \uD802\uDC00. Python: \U00010800.
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