π is the Unicode character TETRAGRAM FOR CONTENTION, code point U+1D31E (decimal 119582) in the Tai Xuan Jing Symbols block, added in Unicode 4.0. In HTML write 𝌞, and in UTF-8 it is the 4 bytes F0 9D 8C 9E.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1D31E |
| Decimal | 119582 |
| UTF-8 bytes | F0 9D 8C 9E |
| UTF-16 (big-endian) | D834 DF1E |
| UTF-32 | 0001D31E |
| HTML decimal | 𝌞 |
| HTML hex | 𝌞 |
| CSS | \1D31E |
| JavaScript | \u{1D31E} or \uD834\uDF1E |
| JSON | \uD834\uDF1E |
| Python | \U0001D31E |
| Python by name | \N{TETRAGRAM FOR CONTENTION} |
| Java, C# | \uD834\uDF1E |
| Rust, Swift | \u{1D31E} |
| Go, C, C++ | \U0001D31E |
| URL (percent-encoded) | %F0%9D%8C%9E |
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 | TETRAGRAM FOR CONTENTION |
| Code point | U+1D31E (decimal 119582) |
| Block | Tai Xuan Jing Symbols (U+1D300βU+1D35F) |
| General category | So: Other symbol |
| Script | Common |
| Bidirectional class | ON: Other neutral |
| Mirrored in right-to-left text | No |
| First in Unicode version | 4.0 |
Nearby in Tai Xuan Jing Symbols
- π U+1D316 Tetragram For Holding Back
- π U+1D317 Tetragram For Waiting
- π U+1D318 Tetragram For Following
- π U+1D319 Tetragram For Advance
- π U+1D31A Tetragram For Release
- π U+1D31B Tetragram For Resistance
- π U+1D31C Tetragram For Ease
- π U+1D31D Tetragram For Joy
- π U+1D31F Tetragram For Endeavour
- π U+1D320 Tetragram For Duties
- π‘ U+1D321 Tetragram For Change
- π’ U+1D322 Tetragram For Decisiveness
- π£ U+1D323 Tetragram For Bold Resolution
- π€ U+1D324 Tetragram For Packing
- π₯ U+1D325 Tetragram For Legion
- π¦ U+1D326 Tetragram For Closeness
All 87 characters: Tai Xuan Jing Symbols.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𝌞 (decimal) or 𝌞 (hex).
- What is the UTF-8 encoding of U+1D31E?
- F0 9D 8C 9E (hex), 4 bytes. In a URL it is %F0%9D%8C%9E.
- How do I write U+1D31E in JavaScript or Python?
- JavaScript: \u{1D31E} or \uD834\uDF1E. Python: \U0001D31E.
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