π is the Unicode character KHOJKI LETTER U, code point U+11203 (decimal 70147) in the Khojki block, added in Unicode 7.0. In HTML write 𑈃, and in UTF-8 it is the 4 bytes F0 91 88 83.
Codes
| Where | How to write it |
|---|---|
| Code point | U+11203 |
| Decimal | 70147 |
| UTF-8 bytes | F0 91 88 83 |
| UTF-16 (big-endian) | D804 DE03 |
| UTF-32 | 00011203 |
| HTML decimal | 𑈃 |
| HTML hex | 𑈃 |
| CSS | \11203 |
| JavaScript | \u{11203} or \uD804\uDE03 |
| JSON | \uD804\uDE03 |
| Python | \U00011203 |
| Python by name | \N{KHOJKI LETTER U} |
| Java, C# | \uD804\uDE03 |
| Rust, Swift | \u{11203} |
| Go, C, C++ | \U00011203 |
| URL (percent-encoded) | %F0%91%88%83 |
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 U |
| Code point | U+11203 (decimal 70147) |
| 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+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
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+11203?
- F0 91 88 83 (hex), 4 bytes. In a URL it is %F0%91%88%83.
- How do I write U+11203 in JavaScript or Python?
- JavaScript: \u{11203} or \uD804\uDE03. Python: \U00011203.
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