π is the Unicode character KHOJKI LETTER KA, code point U+11208 (decimal 70152) in the Khojki block, added in Unicode 7.0. In HTML write 𑈈, and in UTF-8 it is the 4 bytes F0 91 88 88.
Codes
| Where | How to write it |
|---|---|
| Code point | U+11208 |
| Decimal | 70152 |
| UTF-8 bytes | F0 91 88 88 |
| UTF-16 (big-endian) | D804 DE08 |
| UTF-32 | 00011208 |
| HTML decimal | 𑈈 |
| HTML hex | 𑈈 |
| CSS | \11208 |
| JavaScript | \u{11208} or \uD804\uDE08 |
| JSON | \uD804\uDE08 |
| Python | \U00011208 |
| Python by name | \N{KHOJKI LETTER KA} |
| Java, C# | \uD804\uDE08 |
| Rust, Swift | \u{11208} |
| Go, C, C++ | \U00011208 |
| URL (percent-encoded) | %F0%91%88%88 |
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 KA |
| Code point | U+11208 (decimal 70152) |
| 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+11200 Khojki Letter A
- π U+11201 Khojki Letter Aa
- π U+11202 Khojki Letter I
- π U+11203 Khojki Letter U
- π U+11204 Khojki Letter E
- π U+11205 Khojki Letter Ai
- π U+11206 Khojki Letter O
- π U+11207 Khojki Letter Au
- π U+11209 Khojki Letter Kha
- π U+1120A Khojki Letter Ga
- π U+1120B Khojki Letter Gga
- π U+1120C Khojki Letter Gha
- π U+1120D Khojki Letter Nga
- π U+1120E Khojki Letter Ca
- π U+1120F Khojki Letter Cha
- π U+11210 Khojki Letter Ja
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+11208?
- F0 91 88 88 (hex), 4 bytes. In a URL it is %F0%91%88%88.
- How do I write U+11208 in JavaScript or Python?
- JavaScript: \u{11208} or \uD804\uDE08. Python: \U00011208.
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