π is the Unicode character LINEAR A SIGN A521, code point U+106C2 (decimal 67266) in the Linear A block, added in Unicode 7.0. In HTML write 𐛂, and in UTF-8 it is the 4 bytes F0 90 9B 82.
Codes
| Where | How to write it |
|---|---|
| Code point | U+106C2 |
| Decimal | 67266 |
| UTF-8 bytes | F0 90 9B 82 |
| UTF-16 (big-endian) | D801 DEC2 |
| UTF-32 | 000106C2 |
| HTML decimal | 𐛂 |
| HTML hex | 𐛂 |
| CSS | \106C2 |
| JavaScript | \u{106C2} or \uD801\uDEC2 |
| JSON | \uD801\uDEC2 |
| Python | \U000106C2 |
| Python by name | \N{LINEAR A SIGN A521} |
| Java, C# | \uD801\uDEC2 |
| Rust, Swift | \u{106C2} |
| Go, C, C++ | \U000106C2 |
| URL (percent-encoded) | %F0%90%9B%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 A SIGN A521 |
| Code point | U+106C2 (decimal 67266) |
| Block | Linear A (U+10600βU+1077F) |
| General category | Lo: Other letter |
| Script | Linear A |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 7.0 |
Nearby in Linear A
- πΊ U+106BA Linear A Sign A509
- π» U+106BB Linear A Sign A510
- πΌ U+106BC Linear A Sign A511
- π½ U+106BD Linear A Sign A512
- πΎ U+106BE Linear A Sign A513
- πΏ U+106BF Linear A Sign A515
- π U+106C0 Linear A Sign A516
- π U+106C1 Linear A Sign A520
- π U+106C3 Linear A Sign A523
- π U+106C4 Linear A Sign A524
- π U+106C5 Linear A Sign A525
- π U+106C6 Linear A Sign A526
- π U+106C7 Linear A Sign A527
- π U+106C8 Linear A Sign A528
- π U+106C9 Linear A Sign A529
- π U+106CA Linear A Sign A530
All 340 characters: Linear A.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𐛂 (decimal) or 𐛂 (hex).
- What is the UTF-8 encoding of U+106C2?
- F0 90 9B 82 (hex), 4 bytes. In a URL it is %F0%90%9B%82.
- How do I write U+106C2 in JavaScript or Python?
- JavaScript: \u{106C2} or \uD801\uDEC2. Python: \U000106C2.
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