π is the Unicode character CUNEIFORM SIGN GI, code point U+12100 (decimal 73984) in the Cuneiform block, added in Unicode 5.0. In HTML write 𒄀, and in UTF-8 it is the 4 bytes F0 92 84 80.
Codes
| Where | How to write it |
|---|---|
| Code point | U+12100 |
| Decimal | 73984 |
| UTF-8 bytes | F0 92 84 80 |
| UTF-16 (big-endian) | D808 DD00 |
| UTF-32 | 00012100 |
| HTML decimal | 𒄀 |
| HTML hex | 𒄀 |
| CSS | \12100 |
| JavaScript | \u{12100} or \uD808\uDD00 |
| JSON | \uD808\uDD00 |
| Python | \U00012100 |
| Python by name | \N{CUNEIFORM SIGN GI} |
| Java, C# | \uD808\uDD00 |
| Rust, Swift | \u{12100} |
| Go, C, C++ | \U00012100 |
| URL (percent-encoded) | %F0%92%84%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 GI |
| Code point | U+12100 (decimal 73984) |
| 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+120F8 Cuneiform Sign Gan2 Tenu
- πΉ U+120F9 Cuneiform Sign Gan2 Over Gan2
- πΊ U+120FA Cuneiform Sign Gan2 Crossing Gan2
- π» U+120FB Cuneiform Sign Gar
- πΌ U+120FC Cuneiform Sign Gar3
- π½ U+120FD Cuneiform Sign Gashan
- πΎ U+120FE Cuneiform Sign Geshtin
- πΏ U+120FF Cuneiform Sign Geshtin Times Kur
- π U+12101 Cuneiform Sign Gi Times E
- π U+12102 Cuneiform Sign Gi Times U
- π U+12103 Cuneiform Sign Gi Crossing Gi
- π U+12104 Cuneiform Sign Gi4
- π U+12105 Cuneiform Sign Gi4 Over Gi4
- π U+12106 Cuneiform Sign Gi4 Crossing Gi4
- π U+12107 Cuneiform Sign Gidim
- π U+12108 Cuneiform Sign Gir2
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+12100?
- F0 92 84 80 (hex), 4 bytes. In a URL it is %F0%92%84%80.
- How do I write U+12100 in JavaScript or Python?
- JavaScript: \u{12100} or \uD808\uDD00. Python: \U00012100.
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