π is the Unicode character CARIAN LETTER E2, code point U+102CF (decimal 66255) in the Carian block, added in Unicode 5.1. In HTML write 𐋏, and in UTF-8 it is the 4 bytes F0 90 8B 8F.
Codes
| Where | How to write it |
|---|---|
| Code point | U+102CF |
| Decimal | 66255 |
| UTF-8 bytes | F0 90 8B 8F |
| UTF-16 (big-endian) | D800 DECF |
| UTF-32 | 000102CF |
| HTML decimal | 𐋏 |
| HTML hex | 𐋏 |
| CSS | \102CF |
| JavaScript | \u{102CF} or \uD800\uDECF |
| JSON | \uD800\uDECF |
| Python | \U000102CF |
| Python by name | \N{CARIAN LETTER E2} |
| Java, C# | \uD800\uDECF |
| Rust, Swift | \u{102CF} |
| Go, C, C++ | \U000102CF |
| URL (percent-encoded) | %F0%90%8B%8F |
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 E2 |
| Code point | U+102CF (decimal 66255) |
| 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+102C7 Carian Letter Tt
- π U+102C8 Carian Letter Uuu2
- π U+102C9 Carian Letter Rr
- π U+102CA Carian Letter Mb
- π U+102CB Carian Letter Mb2
- π U+102CC Carian Letter Mb3
- π U+102CD Carian Letter Mb4
- π U+102CE Carian Letter Ld2
- π U+102D0 Carian Letter Uuu3
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+102CF?
- F0 90 8B 8F (hex), 4 bytes. In a URL it is %F0%90%8B%8F.
- How do I write U+102CF in JavaScript or Python?
- JavaScript: \u{102CF} or \uD800\uDECF. Python: \U000102CF.
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