π is the Unicode character CARIAN LETTER ST, code point U+102C2 (decimal 66242) in the Carian block, added in Unicode 5.1. In HTML write 𐋂, and in UTF-8 it is the 4 bytes F0 90 8B 82.
Codes
| Where | How to write it |
|---|---|
| Code point | U+102C2 |
| Decimal | 66242 |
| UTF-8 bytes | F0 90 8B 82 |
| UTF-16 (big-endian) | D800 DEC2 |
| UTF-32 | 000102C2 |
| HTML decimal | 𐋂 |
| HTML hex | 𐋂 |
| CSS | \102C2 |
| JavaScript | \u{102C2} or \uD800\uDEC2 |
| JSON | \uD800\uDEC2 |
| Python | \U000102C2 |
| Python by name | \N{CARIAN LETTER ST} |
| Java, C# | \uD800\uDEC2 |
| Rust, Swift | \u{102C2} |
| Go, C, C++ | \U000102C2 |
| URL (percent-encoded) | %F0%90%8B%82 |
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 | CARIAN LETTER ST |
| Code point | U+102C2 (decimal 66242) |
| Block | Carian (U+102A0βU+102DF) |
| General category | Lo: Other letter |
| Script | Carian |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 5.1 |
Nearby in Carian
- πΊ U+102BA Carian Letter E
- π» U+102BB Carian Letter Uuuu
- πΌ U+102BC Carian Letter K
- π½ U+102BD Carian Letter K2
- πΎ U+102BE Carian Letter Nd
- πΏ U+102BF Carian Letter Uu
- π U+102C0 Carian Letter G
- π U+102C1 Carian Letter G2
- π U+102C3 Carian Letter St2
- π U+102C4 Carian Letter Ng
- π U+102C5 Carian Letter Ii
- π U+102C6 Carian Letter C-39
- π U+102C7 Carian Letter Tt
- π U+102C8 Carian Letter Uuu2
- π U+102C9 Carian Letter Rr
- π U+102CA Carian Letter Mb
All 49 characters: Carian.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𐋂 (decimal) or 𐋂 (hex).
- What is the UTF-8 encoding of U+102C2?
- F0 90 8B 82 (hex), 4 bytes. In a URL it is %F0%90%8B%82.
- How do I write U+102C2 in JavaScript or Python?
- JavaScript: \u{102C2} or \uD800\uDEC2. Python: \U000102C2.
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