π is the Unicode character OLD ITALIC LETTER THE, code point U+10308 (decimal 66312) 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 88.
Codes
| Where | How to write it |
|---|---|
| Code point | U+10308 |
| Decimal | 66312 |
| UTF-8 bytes | F0 90 8C 88 |
| UTF-16 (big-endian) | D800 DF08 |
| UTF-32 | 00010308 |
| HTML decimal | 𐌈 |
| HTML hex | 𐌈 |
| CSS | \10308 |
| JavaScript | \u{10308} or \uD800\uDF08 |
| JSON | \uD800\uDF08 |
| Python | \U00010308 |
| Python by name | \N{OLD ITALIC LETTER THE} |
| Java, C# | \uD800\uDF08 |
| Rust, Swift | \u{10308} |
| Go, C, C++ | \U00010308 |
| URL (percent-encoded) | %F0%90%8C%88 |
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 THE |
| Code point | U+10308 (decimal 66312) |
| 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+10300 Old Italic Letter A
- π U+10301 Old Italic Letter Be
- π U+10302 Old Italic Letter Ke
- π U+10303 Old Italic Letter De
- π U+10304 Old Italic Letter E
- π U+10305 Old Italic Letter Ve
- π U+10306 Old Italic Letter Ze
- π U+10307 Old Italic Letter He
- π 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+10310 Old Italic Letter Pe
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+10308?
- F0 90 8C 88 (hex), 4 bytes. In a URL it is %F0%90%8C%88.
- How do I write U+10308 in JavaScript or Python?
- JavaScript: \u{10308} or \uD800\uDF08. Python: \U00010308.
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