π is the Unicode character SIDDHAM LETTER AA, code point U+11581 (decimal 71041) in the Siddham block, added in Unicode 7.0. In HTML write 𑖁, and in UTF-8 it is the 4 bytes F0 91 96 81.
Codes
| Where | How to write it |
|---|---|
| Code point | U+11581 |
| Decimal | 71041 |
| UTF-8 bytes | F0 91 96 81 |
| UTF-16 (big-endian) | D805 DD81 |
| UTF-32 | 00011581 |
| HTML decimal | 𑖁 |
| HTML hex | 𑖁 |
| CSS | \11581 |
| JavaScript | \u{11581} or \uD805\uDD81 |
| JSON | \uD805\uDD81 |
| Python | \U00011581 |
| Python by name | \N{SIDDHAM LETTER AA} |
| Java, C# | \uD805\uDD81 |
| Rust, Swift | \u{11581} |
| Go, C, C++ | \U00011581 |
| URL (percent-encoded) | %F0%91%96%81 |
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 | SIDDHAM LETTER AA |
| Code point | U+11581 (decimal 71041) |
| Block | Siddham (U+11580βU+115FF) |
| General category | Lo: Other letter |
| Script | Siddham |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 7.0 |
Nearby in Siddham
- π U+11580 Siddham Letter A
- π U+11582 Siddham Letter I
- π U+11583 Siddham Letter Ii
- π U+11584 Siddham Letter U
- π U+11585 Siddham Letter Uu
- π U+11586 Siddham Letter Vocalic R
- π U+11587 Siddham Letter Vocalic Rr
- π U+11588 Siddham Letter Vocalic L
- π U+11589 Siddham Letter Vocalic Ll
All 92 characters: Siddham.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𑖁 (decimal) or 𑖁 (hex).
- What is the UTF-8 encoding of U+11581?
- F0 91 96 81 (hex), 4 bytes. In a URL it is %F0%91%96%81.
- How do I write U+11581 in JavaScript or Python?
- JavaScript: \u{11581} or \uD805\uDD81. Python: \U00011581.
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