π is the Unicode character SHARADA SIGN SIDDHAM, code point U+111DB (decimal 70107) in the Sharada block, added in Unicode 8.0. In HTML write 𑇛, and in UTF-8 it is the 4 bytes F0 91 87 9B.
Codes
| Where | How to write it |
|---|---|
| Code point | U+111DB |
| Decimal | 70107 |
| UTF-8 bytes | F0 91 87 9B |
| UTF-16 (big-endian) | D804 DDDB |
| UTF-32 | 000111DB |
| HTML decimal | 𑇛 |
| HTML hex | 𑇛 |
| CSS | \111DB |
| JavaScript | \u{111DB} or \uD804\uDDDB |
| JSON | \uD804\uDDDB |
| Python | \U000111DB |
| Python by name | \N{SHARADA SIGN SIDDHAM} |
| Java, C# | \uD804\uDDDB |
| Rust, Swift | \u{111DB} |
| Go, C, C++ | \U000111DB |
| URL (percent-encoded) | %F0%91%87%9B |
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 | SHARADA SIGN SIDDHAM |
| Code point | U+111DB (decimal 70107) |
| Block | Sharada (U+11180βU+111DF) |
| General category | Po: Other punctuation |
| Script | Sharada |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 8.0 |
Nearby in Sharada
- π U+111D3 Sharada Digit Three
- π U+111D4 Sharada Digit Four
- π U+111D5 Sharada Digit Five
- π U+111D6 Sharada Digit Six
- π U+111D7 Sharada Digit Seven
- π U+111D8 Sharada Digit Eight
- π U+111D9 Sharada Digit Nine
- π U+111DA Sharada Ekam
- π U+111DC Sharada Headstroke
- π U+111DD Sharada Continuation Sign
- π U+111DE Sharada Section Mark-1
- π U+111DF Sharada Section Mark-2
All 96 characters: Sharada.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𑇛 (decimal) or 𑇛 (hex).
- What is the UTF-8 encoding of U+111DB?
- F0 91 87 9B (hex), 4 bytes. In a URL it is %F0%91%87%9B.
- How do I write U+111DB in JavaScript or Python?
- JavaScript: \u{111DB} or \uD804\uDDDB. Python: \U000111DB.
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