π is the Unicode character CHAKMA DOUBLE DANDA, code point U+11142 (decimal 69954) in the Chakma block, added in Unicode 6.1. In HTML write 𑅂, and in UTF-8 it is the 4 bytes F0 91 85 82.
Codes
| Where | How to write it |
|---|---|
| Code point | U+11142 |
| Decimal | 69954 |
| UTF-8 bytes | F0 91 85 82 |
| UTF-16 (big-endian) | D804 DD42 |
| UTF-32 | 00011142 |
| HTML decimal | 𑅂 |
| HTML hex | 𑅂 |
| CSS | \11142 |
| JavaScript | \u{11142} or \uD804\uDD42 |
| JSON | \uD804\uDD42 |
| Python | \U00011142 |
| Python by name | \N{CHAKMA DOUBLE DANDA} |
| Java, C# | \uD804\uDD42 |
| Rust, Swift | \u{11142} |
| Go, C, C++ | \U00011142 |
| URL (percent-encoded) | %F0%91%85%82 |
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 | CHAKMA DOUBLE DANDA |
| Code point | U+11142 (decimal 69954) |
| Block | Chakma (U+11100βU+1114F) |
| General category | Po: Other punctuation |
| Script | Chakma |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 6.1 |
Nearby in Chakma
- πΊ U+1113A Chakma Digit Four
- π» U+1113B Chakma Digit Five
- πΌ U+1113C Chakma Digit Six
- π½ U+1113D Chakma Digit Seven
- πΎ U+1113E Chakma Digit Eight
- πΏ U+1113F Chakma Digit Nine
- π U+11140 Chakma Section Mark
- π U+11141 Chakma Danda
- π U+11143 Chakma Question Mark
- π U+11144 Chakma Letter Lhaa
- U+11145 Chakma Vowel Sign Aa
- U+11146 Chakma Vowel Sign Ei
- π U+11147 Chakma Letter Vaa
All 71 characters: Chakma.
Official reference
Questions people ask
- What is the HTML code for π ?
- Use 𑅂 (decimal) or 𑅂 (hex).
- What is the UTF-8 encoding of U+11142?
- F0 91 85 82 (hex), 4 bytes. In a URL it is %F0%91%85%82.
- How do I write U+11142 in JavaScript or Python?
- JavaScript: \u{11142} or \uD804\uDD42. Python: \U00011142.
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