π is the Unicode character CUNEIFORM SIGN TIL, code point U+12300 (decimal 74496) in the Cuneiform block, added in Unicode 5.0. In HTML write 𒌀, and in UTF-8 it is the 4 bytes F0 92 8C 80.
Codes
| Where | How to write it |
|---|---|
| Code point | U+12300 |
| Decimal | 74496 |
| UTF-8 bytes | F0 92 8C 80 |
| UTF-16 (big-endian) | D808 DF00 |
| UTF-32 | 00012300 |
| HTML decimal | 𒌀 |
| HTML hex | 𒌀 |
| CSS | \12300 |
| JavaScript | \u{12300} or \uD808\uDF00 |
| JSON | \uD808\uDF00 |
| Python | \U00012300 |
| Python by name | \N{CUNEIFORM SIGN TIL} |
| Java, C# | \uD808\uDF00 |
| Rust, Swift | \u{12300} |
| Go, C, C++ | \U00012300 |
| URL (percent-encoded) | %F0%92%8C%80 |
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 | CUNEIFORM SIGN TIL |
| Code point | U+12300 (decimal 74496) |
| Block | Cuneiform (U+12000βU+123FF) |
| General category | Lo: Other letter |
| Script | Cuneiform |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 5.0 |
Nearby in Cuneiform
- πΈ U+122F8 Cuneiform Sign Tag Times Tug2
- πΉ U+122F9 Cuneiform Sign Tag Times Ud
- πΊ U+122FA Cuneiform Sign Tak4
- π» U+122FB Cuneiform Sign Tar
- πΌ U+122FC Cuneiform Sign Te
- π½ U+122FD Cuneiform Sign Te Gunu
- πΎ U+122FE Cuneiform Sign Ti
- πΏ U+122FF Cuneiform Sign Ti Tenu
- π U+12301 Cuneiform Sign Tir
- π U+12302 Cuneiform Sign Tir Times Tak4
- π U+12303 Cuneiform Sign Tir Over Tir
- π U+12304 Cuneiform Sign Tir Over Tir Gad Over Gad Gar Over Gar
- π U+12305 Cuneiform Sign Tu
- π U+12306 Cuneiform Sign Tug2
- π U+12307 Cuneiform Sign Tuk
- π U+12308 Cuneiform Sign Tum
All 922 characters: Cuneiform.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𒌀 (decimal) or 𒌀 (hex).
- What is the UTF-8 encoding of U+12300?
- F0 92 8C 80 (hex), 4 bytes. In a URL it is %F0%92%8C%80.
- How do I write U+12300 in JavaScript or Python?
- JavaScript: \u{12300} or \uD808\uDF00. Python: \U00012300.
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