π is the Unicode character PHAISTOS DISC SIGN TIARA, code point U+101D8 (decimal 66008) in the Phaistos Disc block, added in Unicode 5.1. In HTML write 𐇘, and in UTF-8 it is the 4 bytes F0 90 87 98.
Codes
| Where | How to write it |
|---|---|
| Code point | U+101D8 |
| Decimal | 66008 |
| UTF-8 bytes | F0 90 87 98 |
| UTF-16 (big-endian) | D800 DDD8 |
| UTF-32 | 000101D8 |
| HTML decimal | 𐇘 |
| HTML hex | 𐇘 |
| CSS | \101D8 |
| JavaScript | \u{101D8} or \uD800\uDDD8 |
| JSON | \uD800\uDDD8 |
| Python | \U000101D8 |
| Python by name | \N{PHAISTOS DISC SIGN TIARA} |
| Java, C# | \uD800\uDDD8 |
| Rust, Swift | \u{101D8} |
| Go, C, C++ | \U000101D8 |
| URL (percent-encoded) | %F0%90%87%98 |
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 | PHAISTOS DISC SIGN TIARA |
| Code point | U+101D8 (decimal 66008) |
| Block | Phaistos Disc (U+101D0βU+101FF) |
| General category | So: Other symbol |
| Script | Common |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 5.1 |
Nearby in Phaistos Disc
- π U+101D0 Phaistos Disc Sign Pedestrian
- π U+101D1 Phaistos Disc Sign Plumed Head
- π U+101D2 Phaistos Disc Sign Tattooed Head
- π U+101D3 Phaistos Disc Sign Captive
- π U+101D4 Phaistos Disc Sign Child
- π U+101D5 Phaistos Disc Sign Woman
- π U+101D6 Phaistos Disc Sign Helmet
- π U+101D7 Phaistos Disc Sign Gauntlet
- π U+101D9 Phaistos Disc Sign Arrow
- π U+101DA Phaistos Disc Sign Bow
- π U+101DB Phaistos Disc Sign Shield
- π U+101DC Phaistos Disc Sign Club
- π U+101DD Phaistos Disc Sign Manacles
- π U+101DE Phaistos Disc Sign Mattock
- π U+101DF Phaistos Disc Sign Saw
- π U+101E0 Phaistos Disc Sign Lid
All 46 characters: Phaistos Disc.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𐇘 (decimal) or 𐇘 (hex).
- What is the UTF-8 encoding of U+101D8?
- F0 90 87 98 (hex), 4 bytes. In a URL it is %F0%90%87%98.
- How do I write U+101D8 in JavaScript or Python?
- JavaScript: \u{101D8} or \uD800\uDDD8. Python: \U000101D8.
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