π is the Unicode character UGARITIC LETTER QOPA, code point U+10396 (decimal 66454) in the Ugaritic block, added in Unicode 4.0. In HTML write 𐎖, and in UTF-8 it is the 4 bytes F0 90 8E 96.
Codes
| Where | How to write it |
|---|---|
| Code point | U+10396 |
| Decimal | 66454 |
| UTF-8 bytes | F0 90 8E 96 |
| UTF-16 (big-endian) | D800 DF96 |
| UTF-32 | 00010396 |
| HTML decimal | 𐎖 |
| HTML hex | 𐎖 |
| CSS | \10396 |
| JavaScript | \u{10396} or \uD800\uDF96 |
| JSON | \uD800\uDF96 |
| Python | \U00010396 |
| Python by name | \N{UGARITIC LETTER QOPA} |
| Java, C# | \uD800\uDF96 |
| Rust, Swift | \u{10396} |
| Go, C, C++ | \U00010396 |
| URL (percent-encoded) | %F0%90%8E%96 |
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 | UGARITIC LETTER QOPA |
| Code point | U+10396 (decimal 66454) |
| Block | Ugaritic (U+10380βU+1039F) |
| General category | Lo: Other letter |
| Script | Ugaritic |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 4.0 |
Nearby in Ugaritic
- π U+1038E Ugaritic Letter Mem
- π U+1038F Ugaritic Letter Dhal
- π U+10390 Ugaritic Letter Nun
- π U+10391 Ugaritic Letter Zu
- π U+10392 Ugaritic Letter Samka
- π U+10393 Ugaritic Letter Ain
- π U+10394 Ugaritic Letter Pu
- π U+10395 Ugaritic Letter Sade
- π U+10397 Ugaritic Letter Rasha
- π U+10398 Ugaritic Letter Thanna
- π U+10399 Ugaritic Letter Ghain
- π U+1039A Ugaritic Letter To
- π U+1039B Ugaritic Letter I
- π U+1039C Ugaritic Letter U
- π U+1039D Ugaritic Letter Ssu
- π U+1039F Ugaritic Word Divider
All 31 characters: Ugaritic.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𐎖 (decimal) or 𐎖 (hex).
- What is the UTF-8 encoding of U+10396?
- F0 90 8E 96 (hex), 4 bytes. In a URL it is %F0%90%8E%96.
- How do I write U+10396 in JavaScript or Python?
- JavaScript: \u{10396} or \uD800\uDF96. Python: \U00010396.
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