π is the Unicode character KHOJKI LETTER SHORT I, code point U+11240 (decimal 70208) in the Khojki block, added in Unicode 15.0. In HTML write 𑉀, and in UTF-8 it is the 4 bytes F0 91 89 80.
Codes
| Where | How to write it |
|---|---|
| Code point | U+11240 |
| Decimal | 70208 |
| UTF-8 bytes | F0 91 89 80 |
| UTF-16 (big-endian) | D804 DE40 |
| UTF-32 | 00011240 |
| HTML decimal | 𑉀 |
| HTML hex | 𑉀 |
| CSS | \11240 |
| JavaScript | \u{11240} or \uD804\uDE40 |
| JSON | \uD804\uDE40 |
| Python | \U00011240 |
| Python by name | \N{KHOJKI LETTER SHORT I} |
| Java, C# | \uD804\uDE40 |
| Rust, Swift | \u{11240} |
| Go, C, C++ | \U00011240 |
| URL (percent-encoded) | %F0%91%89%80 |
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 SHORT I |
| Code point | U+11240 (decimal 70208) |
| 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 | 15.0 |
Nearby in Khojki
- πΈ U+11238 Khojki Danda
- πΉ U+11239 Khojki Double Danda
- πΊ U+1123A Khojki Word Separator
- π» U+1123B Khojki Section Mark
- πΌ U+1123C Khojki Double Section Mark
- π½ U+1123D Khojki Abbreviation Sign
- U+1123E Khojki Sign Sukun
- πΏ U+1123F Khojki Letter Qa
- U+11241 Khojki Vowel Sign Vocalic R
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+11240?
- F0 91 89 80 (hex), 4 bytes. In a URL it is %F0%91%89%80.
- How do I write U+11240 in JavaScript or Python?
- JavaScript: \u{11240} or \uD804\uDE40. Python: \U00011240.
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