π is the Unicode character ROMAN CENTURIAL SIGN, code point U+1019B (decimal 65947) 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 9B.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1019B |
| Decimal | 65947 |
| UTF-8 bytes | F0 90 86 9B |
| UTF-16 (big-endian) | D800 DD9B |
| UTF-32 | 0001019B |
| HTML decimal | 𐆛 |
| HTML hex | 𐆛 |
| CSS | \1019B |
| JavaScript | \u{1019B} or \uD800\uDD9B |
| JSON | \uD800\uDD9B |
| Python | \U0001019B |
| Python by name | \N{ROMAN CENTURIAL SIGN} |
| Java, C# | \uD800\uDD9B |
| Rust, Swift | \u{1019B} |
| Go, C, C++ | \U0001019B |
| URL (percent-encoded) | %F0%90%86%9B |
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 CENTURIAL SIGN |
| Code point | U+1019B (decimal 65947) |
| 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+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
- π U+1019A Roman As Sign
- π U+1019C Ascia Symbol
- π U+101A0 Greek Symbol Tau Rho
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+1019B?
- F0 90 86 9B (hex), 4 bytes. In a URL it is %F0%90%86%9B.
- How do I write U+1019B in JavaScript or Python?
- JavaScript: \u{1019B} or \uD800\uDD9B. Python: \U0001019B.
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