π is the Unicode character LINEAR B SYLLABLE B028 I, code point U+10002 (decimal 65538) in the Linear B Syllabary block, added in Unicode 4.0. In HTML write 𐀂, and in UTF-8 it is the 4 bytes F0 90 80 82.
Codes
| Where | How to write it |
|---|---|
| Code point | U+10002 |
| Decimal | 65538 |
| UTF-8 bytes | F0 90 80 82 |
| UTF-16 (big-endian) | D800 DC02 |
| UTF-32 | 00010002 |
| HTML decimal | 𐀂 |
| HTML hex | 𐀂 |
| CSS | \10002 |
| JavaScript | \u{10002} or \uD800\uDC02 |
| JSON | \uD800\uDC02 |
| Python | \U00010002 |
| Python by name | \N{LINEAR B SYLLABLE B028 I} |
| Java, C# | \uD800\uDC02 |
| Rust, Swift | \u{10002} |
| Go, C, C++ | \U00010002 |
| URL (percent-encoded) | %F0%90%80%82 |
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 | LINEAR B SYLLABLE B028 I |
| Code point | U+10002 (decimal 65538) |
| Block | Linear B Syllabary (U+10000βU+1007F) |
| General category | Lo: Other letter |
| Script | Linear B |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 4.0 |
Nearby in Linear B Syllabary
- π U+10000 Linear B Syllable B008 A
- π U+10001 Linear B Syllable B038 E
- π U+10003 Linear B Syllable B061 O
- π U+10004 Linear B Syllable B010 U
- π U+10005 Linear B Syllable B001 Da
- π U+10006 Linear B Syllable B045 De
- π U+10007 Linear B Syllable B007 Di
- π U+10008 Linear B Syllable B014 Do
- π U+10009 Linear B Syllable B051 Du
- π U+1000A Linear B Syllable B057 Ja
All 88 characters: Linear B Syllabary.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𐀂 (decimal) or 𐀂 (hex).
- What is the UTF-8 encoding of U+10002?
- F0 90 80 82 (hex), 4 bytes. In a URL it is %F0%90%80%82.
- How do I write U+10002 in JavaScript or Python?
- JavaScript: \u{10002} or \uD800\uDC02. Python: \U00010002.
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