π is the Unicode character CUNEIFORM SIGN LU2 CROSSING LU2, code point U+12212 (decimal 74258) in the Cuneiform block, added in Unicode 5.0. In HTML write 𒈒, and in UTF-8 it is the 4 bytes F0 92 88 92.
Codes
| Where | How to write it |
|---|---|
| Code point | U+12212 |
| Decimal | 74258 |
| UTF-8 bytes | F0 92 88 92 |
| UTF-16 (big-endian) | D808 DE12 |
| UTF-32 | 00012212 |
| HTML decimal | 𒈒 |
| HTML hex | 𒈒 |
| CSS | \12212 |
| JavaScript | \u{12212} or \uD808\uDE12 |
| JSON | \uD808\uDE12 |
| Python | \U00012212 |
| Python by name | \N{CUNEIFORM SIGN LU2 CROSSING LU2} |
| Java, C# | \uD808\uDE12 |
| Rust, Swift | \u{12212} |
| Go, C, C++ | \U00012212 |
| URL (percent-encoded) | %F0%92%88%92 |
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 LU2 CROSSING LU2 |
| Code point | U+12212 (decimal 74258) |
| 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+1220A Cuneiform Sign Lu2 Times Lagab
- π U+1220B Cuneiform Sign Lu2 Times Me Plus En
- π U+1220C Cuneiform Sign Lu2 Times Ne
- π U+1220D Cuneiform Sign Lu2 Times Nu
- π U+1220E Cuneiform Sign Lu2 Times Si Plus Ash
- π U+1220F Cuneiform Sign Lu2 Times Sik2 Plus Bu
- π U+12210 Cuneiform Sign Lu2 Times Tug2
- π U+12211 Cuneiform Sign Lu2 Tenu
- π U+12213 Cuneiform Sign Lu2 Opposing Lu2
- π U+12214 Cuneiform Sign Lu2 Squared
- π U+12215 Cuneiform Sign Lu2 Sheshig
- π U+12216 Cuneiform Sign Lu3
- π U+12217 Cuneiform Sign Lugal
- π U+12218 Cuneiform Sign Lugal Over Lugal
- π U+12219 Cuneiform Sign Lugal Opposing Lugal
- π U+1221A Cuneiform Sign Lugal Sheshig
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+12212?
- F0 92 88 92 (hex), 4 bytes. In a URL it is %F0%92%88%92.
- How do I write U+12212 in JavaScript or Python?
- JavaScript: \u{12212} or \uD808\uDE12. Python: \U00012212.
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