π is the Unicode character OLD ITALIC LETTER ZE, code point U+10306 (decimal 66310) 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 86.
Codes
| Where | How to write it |
|---|---|
| Code point | U+10306 |
| Decimal | 66310 |
| UTF-8 bytes | F0 90 8C 86 |
| UTF-16 (big-endian) | D800 DF06 |
| UTF-32 | 00010306 |
| HTML decimal | 𐌆 |
| HTML hex | 𐌆 |
| CSS | \10306 |
| JavaScript | \u{10306} or \uD800\uDF06 |
| JSON | \uD800\uDF06 |
| Python | \U00010306 |
| Python by name | \N{OLD ITALIC LETTER ZE} |
| Java, C# | \uD800\uDF06 |
| Rust, Swift | \u{10306} |
| Go, C, C++ | \U00010306 |
| URL (percent-encoded) | %F0%90%8C%86 |
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 ZE |
| Code point | U+10306 (decimal 66310) |
| 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+10307 Old Italic Letter He
- π 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
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+10306?
- F0 90 8C 86 (hex), 4 bytes. In a URL it is %F0%90%8C%86.
- How do I write U+10306 in JavaScript or Python?
- JavaScript: \u{10306} or \uD800\uDF06. Python: \U00010306.
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