π is the Unicode character MODIFIER LETTER SUPERSCRIPT TRIANGULAR COLON, code point U+10781 (decimal 67457) in the Latin Extended-F block, added in Unicode 14.0. In HTML write 𐞁, and in UTF-8 it is the 4 bytes F0 90 9E 81.
Codes
| Where | How to write it |
|---|---|
| Code point | U+10781 |
| Decimal | 67457 |
| UTF-8 bytes | F0 90 9E 81 |
| UTF-16 (big-endian) | D801 DF81 |
| UTF-32 | 00010781 |
| HTML decimal | 𐞁 |
| HTML hex | 𐞁 |
| CSS | \10781 |
| JavaScript | \u{10781} or \uD801\uDF81 |
| JSON | \uD801\uDF81 |
| Python | \U00010781 |
| Python by name | \N{MODIFIER LETTER SUPERSCRIPT TRIANGULAR COLON} |
| Java, C# | \uD801\uDF81 |
| Rust, Swift | \u{10781} |
| Go, C, C++ | \U00010781 |
| URL (percent-encoded) | %F0%90%9E%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 | MODIFIER LETTER SUPERSCRIPT TRIANGULAR COLON |
| Code point | U+10781 (decimal 67457) |
| Block | Latin Extended-F (U+10780βU+107BF) |
| General category | Lm: Modifier letter |
| Script | Latin |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 14.0 |
Decomposition
MODIFIER LETTER SUPERSCRIPT TRIANGULAR COLON has a compatibility decomposition (super) to the sequence below. NFKC and NFKD normalisation replace it with that sequence, which can change how text looks, so use them for search, not for storage.
Nearby in Latin Extended-F
- π U+10780 Modifier Letter Small Capital Aa
- π U+10782 Modifier Letter Superscript Half Triangular Colon
- π U+10783 Modifier Letter Small Ae
- π U+10784 Modifier Letter Small Capital B
- π U+10785 Modifier Letter Small B With Hook
- π U+10787 Modifier Letter Small Dz Digraph
- π U+10788 Modifier Letter Small Dz Digraph With Retroflex Hook
- π U+10789 Modifier Letter Small Dz Digraph With Curl
- π U+1078A Modifier Letter Small Dezh Digraph
All 62 characters: Latin Extended-F.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𐞁 (decimal) or 𐞁 (hex).
- What is the UTF-8 encoding of U+10781?
- F0 90 9E 81 (hex), 4 bytes. In a URL it is %F0%90%9E%81.
- How do I write U+10781 in JavaScript or Python?
- JavaScript: \u{10781} or \uD801\uDF81. Python: \U00010781.
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