π is the Unicode character CUNEIFORM SIGN LU2 SHESHIG TIMES BAD, code point U+12389 (decimal 74633) in the Cuneiform block, added in Unicode 7.0. In HTML write 𒎉, and in UTF-8 it is the 4 bytes F0 92 8E 89.
Codes
| Where | How to write it |
|---|---|
| Code point | U+12389 |
| Decimal | 74633 |
| UTF-8 bytes | F0 92 8E 89 |
| UTF-16 (big-endian) | D808 DF89 |
| UTF-32 | 00012389 |
| HTML decimal | 𒎉 |
| HTML hex | 𒎉 |
| CSS | \12389 |
| JavaScript | \u{12389} or \uD808\uDF89 |
| JSON | \uD808\uDF89 |
| Python | \U00012389 |
| Python by name | \N{CUNEIFORM SIGN LU2 SHESHIG TIMES BAD} |
| Java, C# | \uD808\uDF89 |
| Rust, Swift | \u{12389} |
| Go, C, C++ | \U00012389 |
| URL (percent-encoded) | %F0%92%8E%89 |
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 SHESHIG TIMES BAD |
| Code point | U+12389 (decimal 74633) |
| 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 | 7.0 |
Nearby in Cuneiform
- π U+12381 Cuneiform Sign Ka Times Gud
- π U+12382 Cuneiform Sign Ka Times Hi Times Ash2
- π U+12383 Cuneiform Sign Ka Times Lum
- π U+12384 Cuneiform Sign Ka Times Pa
- π U+12385 Cuneiform Sign Ka Times Shul
- π U+12386 Cuneiform Sign Ka Times Tu
- π U+12387 Cuneiform Sign Ka Times Ur2
- π U+12388 Cuneiform Sign Lagab Times Gi
- π U+1238A Cuneiform Sign Lu2 Times Esh2 Plus Lal
- π U+1238B Cuneiform Sign Lu2 Times Shu
- π U+1238C Cuneiform Sign Mesh
- π U+1238D Cuneiform Sign Mush3 Times Za
- π U+1238E Cuneiform Sign Na4
- π U+1238F Cuneiform Sign Nin
- π U+12390 Cuneiform Sign Nin9
- π U+12391 Cuneiform Sign Ninda2 Times Bal
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+12389?
- F0 92 8E 89 (hex), 4 bytes. In a URL it is %F0%92%8E%89.
- How do I write U+12389 in JavaScript or Python?
- JavaScript: \u{12389} or \uD808\uDF89. Python: \U00012389.
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