π is the Unicode character ROMAN UNCIA SIGN, code point U+10191 (decimal 65937) in the Ancient Symbols block, added in Unicode 5.1. In HTML write 𐆑, and in UTF-8 it is the 4 bytes F0 90 86 91.
Codes
| Where | How to write it |
|---|---|
| Code point | U+10191 |
| Decimal | 65937 |
| UTF-8 bytes | F0 90 86 91 |
| UTF-16 (big-endian) | D800 DD91 |
| UTF-32 | 00010191 |
| HTML decimal | 𐆑 |
| HTML hex | 𐆑 |
| CSS | \10191 |
| JavaScript | \u{10191} or \uD800\uDD91 |
| JSON | \uD800\uDD91 |
| Python | \U00010191 |
| Python by name | \N{ROMAN UNCIA SIGN} |
| Java, C# | \uD800\uDD91 |
| Rust, Swift | \u{10191} |
| Go, C, C++ | \U00010191 |
| URL (percent-encoded) | %F0%90%86%91 |
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 | ROMAN UNCIA SIGN |
| Code point | U+10191 (decimal 65937) |
| Block | Ancient Symbols (U+10190βU+101CF) |
| General category | So: Other symbol |
| Script | Common |
| Bidirectional class | ON: Other neutral |
| Mirrored in right-to-left text | No |
| First in Unicode version | 5.1 |
Nearby in Ancient Symbols
- π U+10190 Roman Sextans Sign
- π U+10192 Roman Semuncia Sign
- π U+10193 Roman Sextula Sign
- π U+10194 Roman Dimidia Sextula Sign
- π U+10195 Roman Siliqua Sign
- π U+10196 Roman Denarius Sign
- π U+10197 Roman Quinarius Sign
- π U+10198 Roman Sestertius Sign
- π U+10199 Roman Dupondius Sign
All 14 characters: Ancient Symbols.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𐆑 (decimal) or 𐆑 (hex).
- What is the UTF-8 encoding of U+10191?
- F0 90 86 91 (hex), 4 bytes. In a URL it is %F0%90%86%91.
- How do I write U+10191 in JavaScript or Python?
- JavaScript: \u{10191} or \uD800\uDD91. Python: \U00010191.
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