π is the Unicode character OLD ITALIC LETTER PE, code point U+10310 (decimal 66320) in the Old Italic block, added in Unicode 3.1. In HTML write 𐌐, and in UTF-8 it is the 4 bytes F0 90 8C 90.
Codes
| Where | How to write it |
|---|---|
| Code point | U+10310 |
| Decimal | 66320 |
| UTF-8 bytes | F0 90 8C 90 |
| UTF-16 (big-endian) | D800 DF10 |
| UTF-32 | 00010310 |
| HTML decimal | 𐌐 |
| HTML hex | 𐌐 |
| CSS | \10310 |
| JavaScript | \u{10310} or \uD800\uDF10 |
| JSON | \uD800\uDF10 |
| Python | \U00010310 |
| Python by name | \N{OLD ITALIC LETTER PE} |
| Java, C# | \uD800\uDF10 |
| Rust, Swift | \u{10310} |
| Go, C, C++ | \U00010310 |
| URL (percent-encoded) | %F0%90%8C%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 | OLD ITALIC LETTER PE |
| Code point | U+10310 (decimal 66320) |
| Block | Old Italic (U+10300βU+1032F) |
| General category | Lo: Other letter |
| Script | Old Italic |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 3.1 |
Nearby in Old Italic
- π U+10308 Old Italic Letter The
- π U+10309 Old Italic Letter I
- π U+1030A Old Italic Letter Ka
- π U+1030B Old Italic Letter El
- π U+1030C Old Italic Letter Em
- π U+1030D Old Italic Letter En
- π U+1030E Old Italic Letter Esh
- π U+1030F Old Italic Letter O
- π U+10311 Old Italic Letter She
- π U+10312 Old Italic Letter Ku
- π U+10313 Old Italic Letter Er
- π U+10314 Old Italic Letter Es
- π U+10315 Old Italic Letter Te
- π U+10316 Old Italic Letter U
- π U+10317 Old Italic Letter Eks
- π U+10318 Old Italic Letter Phe
All 39 characters: Old Italic.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𐌐 (decimal) or 𐌐 (hex).
- What is the UTF-8 encoding of U+10310?
- F0 90 8C 90 (hex), 4 bytes. In a URL it is %F0%90%8C%90.
- How do I write U+10310 in JavaScript or Python?
- JavaScript: \u{10310} or \uD800\uDF10. Python: \U00010310.
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