π is the Unicode character SHARADA EKAM, code point U+111DA (decimal 70106) in the Sharada block, added in Unicode 7.0. In HTML write 𑇚, and in UTF-8 it is the 4 bytes F0 91 87 9A.
Codes
| Where | How to write it |
|---|---|
| Code point | U+111DA |
| Decimal | 70106 |
| UTF-8 bytes | F0 91 87 9A |
| UTF-16 (big-endian) | D804 DDDA |
| UTF-32 | 000111DA |
| HTML decimal | 𑇚 |
| HTML hex | 𑇚 |
| CSS | \111DA |
| JavaScript | \u{111DA} or \uD804\uDDDA |
| JSON | \uD804\uDDDA |
| Python | \U000111DA |
| Python by name | \N{SHARADA EKAM} |
| Java, C# | \uD804\uDDDA |
| Rust, Swift | \u{111DA} |
| Go, C, C++ | \U000111DA |
| URL (percent-encoded) | %F0%91%87%9A |
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 EKAM |
| Code point | U+111DA (decimal 70106) |
| Block | Sharada (U+11180βU+111DF) |
| General category | Lo: Other letter |
| Script | Sharada |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 7.0 |
Nearby in Sharada
- π U+111D2 Sharada Digit Two
- π 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+111DB Sharada Sign Siddham
- π 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+111DA?
- F0 91 87 9A (hex), 4 bytes. In a URL it is %F0%91%87%9A.
- How do I write U+111DA in JavaScript or Python?
- JavaScript: \u{111DA} or \uD804\uDDDA. Python: \U000111DA.
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