π is the Unicode character GRANTHA LETTER JHA, code point U+1131D (decimal 70429) in the Grantha block, added in Unicode 7.0. In HTML write 𑌝, and in UTF-8 it is the 4 bytes F0 91 8C 9D.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1131D |
| Decimal | 70429 |
| UTF-8 bytes | F0 91 8C 9D |
| UTF-16 (big-endian) | D804 DF1D |
| UTF-32 | 0001131D |
| HTML decimal | 𑌝 |
| HTML hex | 𑌝 |
| CSS | \1131D |
| JavaScript | \u{1131D} or \uD804\uDF1D |
| JSON | \uD804\uDF1D |
| Python | \U0001131D |
| Python by name | \N{GRANTHA LETTER JHA} |
| Java, C# | \uD804\uDF1D |
| Rust, Swift | \u{1131D} |
| Go, C, C++ | \U0001131D |
| URL (percent-encoded) | %F0%91%8C%9D |
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 | GRANTHA LETTER JHA |
| Code point | U+1131D (decimal 70429) |
| Block | Grantha (U+11300βU+1137F) |
| General category | Lo: Other letter |
| Script | Grantha |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 7.0 |
Nearby in Grantha
- π U+11315 Grantha Letter Ka
- π U+11316 Grantha Letter Kha
- π U+11317 Grantha Letter Ga
- π U+11318 Grantha Letter Gha
- π U+11319 Grantha Letter Nga
- π U+1131A Grantha Letter Ca
- π U+1131B Grantha Letter Cha
- π U+1131C Grantha Letter Ja
- π U+1131E Grantha Letter Nya
- π U+1131F Grantha Letter Tta
- π U+11320 Grantha Letter Ttha
- π‘ U+11321 Grantha Letter Dda
- π’ U+11322 Grantha Letter Ddha
- π£ U+11323 Grantha Letter Nna
- π€ U+11324 Grantha Letter Ta
- π₯ U+11325 Grantha Letter Tha
All 86 characters: Grantha.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𑌝 (decimal) or 𑌝 (hex).
- What is the UTF-8 encoding of U+1131D?
- F0 91 8C 9D (hex), 4 bytes. In a URL it is %F0%91%8C%9D.
- How do I write U+1131D in JavaScript or Python?
- JavaScript: \u{1131D} or \uD804\uDF1D. Python: \U0001131D.
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