π is the Unicode character KHOJKI LETTER DA, code point U+1121B (decimal 70171) in the Khojki block, added in Unicode 7.0. In HTML write 𑈛, and in UTF-8 it is the 4 bytes F0 91 88 9B.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1121B |
| Decimal | 70171 |
| UTF-8 bytes | F0 91 88 9B |
| UTF-16 (big-endian) | D804 DE1B |
| UTF-32 | 0001121B |
| HTML decimal | 𑈛 |
| HTML hex | 𑈛 |
| CSS | \1121B |
| JavaScript | \u{1121B} or \uD804\uDE1B |
| JSON | \uD804\uDE1B |
| Python | \U0001121B |
| Python by name | \N{KHOJKI LETTER DA} |
| Java, C# | \uD804\uDE1B |
| Rust, Swift | \u{1121B} |
| Go, C, C++ | \U0001121B |
| URL (percent-encoded) | %F0%91%88%9B |
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 | KHOJKI LETTER DA |
| Code point | U+1121B (decimal 70171) |
| Block | Khojki (U+11200βU+1124F) |
| General category | Lo: Other letter |
| Script | Khojki |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 7.0 |
Nearby in Khojki
- π U+11213 Khojki Letter Nya
- π U+11214 Khojki Letter Tta
- π U+11215 Khojki Letter Ttha
- π U+11216 Khojki Letter Dda
- π U+11217 Khojki Letter Ddha
- π U+11218 Khojki Letter Nna
- π U+11219 Khojki Letter Ta
- π U+1121A Khojki Letter Tha
- π U+1121C Khojki Letter Ddda
- π U+1121D Khojki Letter Dha
- π U+1121E Khojki Letter Na
- π U+1121F Khojki Letter Pa
- π U+11220 Khojki Letter Pha
- π‘ U+11221 Khojki Letter Ba
- π’ U+11222 Khojki Letter Bba
- π£ U+11223 Khojki Letter Bha
All 65 characters: Khojki.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𑈛 (decimal) or 𑈛 (hex).
- What is the UTF-8 encoding of U+1121B?
- F0 91 88 9B (hex), 4 bytes. In a URL it is %F0%91%88%9B.
- How do I write U+1121B in JavaScript or Python?
- JavaScript: \u{1121B} or \uD804\uDE1B. Python: \U0001121B.
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