π is the Unicode character CUNEIFORM SIGN LU2 TIMES ESH2 TENU, code point U+12201 (decimal 74241) in the Cuneiform block, added in Unicode 5.0. In HTML write 𒈁, and in UTF-8 it is the 4 bytes F0 92 88 81.
Codes
| Where | How to write it |
|---|---|
| Code point | U+12201 |
| Decimal | 74241 |
| UTF-8 bytes | F0 92 88 81 |
| UTF-16 (big-endian) | D808 DE01 |
| UTF-32 | 00012201 |
| HTML decimal | 𒈁 |
| HTML hex | 𒈁 |
| CSS | \12201 |
| JavaScript | \u{12201} or \uD808\uDE01 |
| JSON | \uD808\uDE01 |
| Python | \U00012201 |
| Python by name | \N{CUNEIFORM SIGN LU2 TIMES ESH2 TENU} |
| Java, C# | \uD808\uDE01 |
| Rust, Swift | \u{12201} |
| Go, C, C++ | \U00012201 |
| URL (percent-encoded) | %F0%92%88%81 |
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 TIMES ESH2 TENU |
| Code point | U+12201 (decimal 74241) |
| 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+121F9 Cuneiform Sign Limmu2
- πΊ U+121FA Cuneiform Sign Lish
- π» U+121FB Cuneiform Sign Lu
- πΌ U+121FC Cuneiform Sign Lu Times Bad
- π½ U+121FD Cuneiform Sign Lu2
- πΎ U+121FE Cuneiform Sign Lu2 Times Al
- πΏ U+121FF Cuneiform Sign Lu2 Times Bad
- π U+12200 Cuneiform Sign Lu2 Times Esh2
- π U+12202 Cuneiform Sign Lu2 Times Gan2 Tenu
- π U+12203 Cuneiform Sign Lu2 Times Hi Times Bad
- π U+12204 Cuneiform Sign Lu2 Times Im
- π U+12205 Cuneiform Sign Lu2 Times Kad2
- π U+12206 Cuneiform Sign Lu2 Times Kad3
- π U+12207 Cuneiform Sign Lu2 Times Kad3 Plus Ash
- π U+12208 Cuneiform Sign Lu2 Times Ki
- π U+12209 Cuneiform Sign Lu2 Times La Plus Ash
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+12201?
- F0 92 88 81 (hex), 4 bytes. In a URL it is %F0%92%88%81.
- How do I write U+12201 in JavaScript or Python?
- JavaScript: \u{12201} or \uD808\uDE01. Python: \U00012201.
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