π is the Unicode character SHARADA SECTION MARK-2, code point U+111DF (decimal 70111) in the Sharada block, added in Unicode 8.0. In HTML write 𑇟, and in UTF-8 it is the 4 bytes F0 91 87 9F.
Codes
| Where | How to write it |
|---|---|
| Code point | U+111DF |
| Decimal | 70111 |
| UTF-8 bytes | F0 91 87 9F |
| UTF-16 (big-endian) | D804 DDDF |
| UTF-32 | 000111DF |
| HTML decimal | 𑇟 |
| HTML hex | 𑇟 |
| CSS | \111DF |
| JavaScript | \u{111DF} or \uD804\uDDDF |
| JSON | \uD804\uDDDF |
| Python | \U000111DF |
| Python by name | \N{SHARADA SECTION MARK-2} |
| Java, C# | \uD804\uDDDF |
| Rust, Swift | \u{111DF} |
| Go, C, C++ | \U000111DF |
| URL (percent-encoded) | %F0%91%87%9F |
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 SECTION MARK-2 |
| Code point | U+111DF (decimal 70111) |
| 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+111D7 Sharada Digit Seven
- π U+111D8 Sharada Digit Eight
- π U+111D9 Sharada Digit Nine
- π U+111DA Sharada Ekam
- π U+111DB Sharada Sign Siddham
- π U+111DC Sharada Headstroke
- π U+111DD Sharada Continuation Sign
- π U+111DE Sharada Section Mark-1
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+111DF?
- F0 91 87 9F (hex), 4 bytes. In a URL it is %F0%91%87%9F.
- How do I write U+111DF in JavaScript or Python?
- JavaScript: \u{111DF} or \uD804\uDDDF. Python: \U000111DF.
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