π is the Unicode character GRANTHA LETTER VOCALIC R, code point U+1130B (decimal 70411) in the Grantha block, added in Unicode 7.0. In HTML write 𑌋, and in UTF-8 it is the 4 bytes F0 91 8C 8B.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1130B |
| Decimal | 70411 |
| UTF-8 bytes | F0 91 8C 8B |
| UTF-16 (big-endian) | D804 DF0B |
| UTF-32 | 0001130B |
| HTML decimal | 𑌋 |
| HTML hex | 𑌋 |
| CSS | \1130B |
| JavaScript | \u{1130B} or \uD804\uDF0B |
| JSON | \uD804\uDF0B |
| Python | \U0001130B |
| Python by name | \N{GRANTHA LETTER VOCALIC R} |
| Java, C# | \uD804\uDF0B |
| Rust, Swift | \u{1130B} |
| Go, C, C++ | \U0001130B |
| URL (percent-encoded) | %F0%91%8C%8B |
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 VOCALIC R |
| Code point | U+1130B (decimal 70411) |
| 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+11302 Grantha Sign Anusvara
- U+11303 Grantha Sign Visarga
- π U+11305 Grantha Letter A
- π U+11306 Grantha Letter Aa
- π U+11307 Grantha Letter I
- π U+11308 Grantha Letter Ii
- π U+11309 Grantha Letter U
- π U+1130A Grantha Letter Uu
- π U+1130C Grantha Letter Vocalic L
- π U+1130F Grantha Letter Ee
- π U+11310 Grantha Letter Ai
- π U+11313 Grantha Letter Oo
- π U+11314 Grantha Letter Au
- π U+11315 Grantha Letter Ka
- π U+11316 Grantha Letter Kha
- π U+11317 Grantha Letter Ga
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+1130B?
- F0 91 8C 8B (hex), 4 bytes. In a URL it is %F0%91%8C%8B.
- How do I write U+1130B in JavaScript or Python?
- JavaScript: \u{1130B} or \uD804\uDF0B. Python: \U0001130B.
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