π is the Unicode character KHOJKI LETTER GHA, code point U+1120C (decimal 70156) in the Khojki block, added in Unicode 7.0. In HTML write 𑈌, and in UTF-8 it is the 4 bytes F0 91 88 8C.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1120C |
| Decimal | 70156 |
| UTF-8 bytes | F0 91 88 8C |
| UTF-16 (big-endian) | D804 DE0C |
| UTF-32 | 0001120C |
| HTML decimal | 𑈌 |
| HTML hex | 𑈌 |
| CSS | \1120C |
| JavaScript | \u{1120C} or \uD804\uDE0C |
| JSON | \uD804\uDE0C |
| Python | \U0001120C |
| Python by name | \N{KHOJKI LETTER GHA} |
| Java, C# | \uD804\uDE0C |
| Rust, Swift | \u{1120C} |
| Go, C, C++ | \U0001120C |
| URL (percent-encoded) | %F0%91%88%8C |
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 GHA |
| Code point | U+1120C (decimal 70156) |
| 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+11204 Khojki Letter E
- π U+11205 Khojki Letter Ai
- π U+11206 Khojki Letter O
- π U+11207 Khojki Letter Au
- π U+11208 Khojki Letter Ka
- π U+11209 Khojki Letter Kha
- π U+1120A Khojki Letter Ga
- π U+1120B Khojki Letter Gga
- π U+1120D Khojki Letter Nga
- π U+1120E Khojki Letter Ca
- π U+1120F Khojki Letter Cha
- π U+11210 Khojki Letter Ja
- π U+11211 Khojki Letter Jja
- π U+11213 Khojki Letter Nya
- π U+11214 Khojki Letter Tta
- π U+11215 Khojki Letter Ttha
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+1120C?
- F0 91 88 8C (hex), 4 bytes. In a URL it is %F0%91%88%8C.
- How do I write U+1120C in JavaScript or Python?
- JavaScript: \u{1120C} or \uD804\uDE0C. Python: \U0001120C.
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