π is the Unicode character TOTO LETTER PA, code point U+1E290 (decimal 123536) in the Toto block, added in Unicode 14.0. In HTML write 𞊐, and in UTF-8 it is the 4 bytes F0 9E 8A 90.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1E290 |
| Decimal | 123536 |
| UTF-8 bytes | F0 9E 8A 90 |
| UTF-16 (big-endian) | D838 DE90 |
| UTF-32 | 0001E290 |
| HTML decimal | 𞊐 |
| HTML hex | 𞊐 |
| CSS | \1E290 |
| JavaScript | \u{1E290} or \uD838\uDE90 |
| JSON | \uD838\uDE90 |
| Python | \U0001E290 |
| Python by name | \N{TOTO LETTER PA} |
| Java, C# | \uD838\uDE90 |
| Rust, Swift | \u{1E290} |
| Go, C, C++ | \U0001E290 |
| URL (percent-encoded) | %F0%9E%8A%90 |
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 | TOTO LETTER PA |
| Code point | U+1E290 (decimal 123536) |
| Block | Toto (U+1E290βU+1E2BF) |
| General category | Lo: Other letter |
| Script | Toto |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 14.0 |
Nearby in Toto
- π U+1E291 Toto Letter Ba
- π U+1E292 Toto Letter Ta
- π U+1E293 Toto Letter Da
- π U+1E294 Toto Letter Ka
- π U+1E295 Toto Letter Ga
- π U+1E296 Toto Letter Ma
- π U+1E297 Toto Letter Na
- π U+1E298 Toto Letter Nga
All 31 characters: Toto.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𞊐 (decimal) or 𞊐 (hex).
- What is the UTF-8 encoding of U+1E290?
- F0 9E 8A 90 (hex), 4 bytes. In a URL it is %F0%9E%8A%90.
- How do I write U+1E290 in JavaScript or Python?
- JavaScript: \u{1E290} or \uD838\uDE90. Python: \U0001E290.
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