π is the Unicode character DIGIT FOUR COMMA, code point U+1F105 (decimal 127237) in the Enclosed Alphanumeric Supplement block, added in Unicode 5.2. In HTML write 🄅, and in UTF-8 it is the 4 bytes F0 9F 84 85.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1F105 |
| Decimal | 127237 |
| UTF-8 bytes | F0 9F 84 85 |
| UTF-16 (big-endian) | D83C DD05 |
| UTF-32 | 0001F105 |
| HTML decimal | 🄅 |
| HTML hex | 🄅 |
| CSS | \1F105 |
| JavaScript | \u{1F105} or \uD83C\uDD05 |
| JSON | \uD83C\uDD05 |
| Python | \U0001F105 |
| Python by name | \N{DIGIT FOUR COMMA} |
| Java, C# | \uD83C\uDD05 |
| Rust, Swift | \u{1F105} |
| Go, C, C++ | \U0001F105 |
| URL (percent-encoded) | %F0%9F%84%85 |
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 | DIGIT FOUR COMMA |
| Code point | U+1F105 (decimal 127237) |
| Block | Enclosed Alphanumeric Supplement (U+1F100βU+1F1FF) |
| General category | No: Other number |
| Script | Common |
| Bidirectional class | EN: European number |
| Numeric value | 4 |
| Mirrored in right-to-left text | No |
| First in Unicode version | 5.2 |
Decomposition
DIGIT FOUR COMMA has a compatibility decomposition (compat) to the sequence below. NFKC and NFKD normalisation replace it with that sequence, which can change how text looks, so use them for search, not for storage.
Nearby in Enclosed Alphanumeric Supplement
- π U+1F100 Digit Zero Full Stop
- π U+1F101 Digit Zero Comma
- π U+1F102 Digit One Comma
- π U+1F103 Digit Two Comma
- π U+1F104 Digit Three Comma
- π U+1F106 Digit Five Comma
- π U+1F107 Digit Six Comma
- π U+1F108 Digit Seven Comma
- π U+1F109 Digit Eight Comma
- π U+1F10A Digit Nine Comma
- π U+1F10B Dingbat Circled Sans-Serif Digit Zero
- π U+1F10C Dingbat Negative Circled Sans-Serif Digit Zero
- π U+1F10D Circled Zero With Slash
All 201 characters: Enclosed Alphanumeric Supplement.
Official reference
Questions people ask
- What is the HTML code for π ?
- Use 🄅 (decimal) or 🄅 (hex).
- What is the UTF-8 encoding of U+1F105?
- F0 9F 84 85 (hex), 4 bytes. In a URL it is %F0%9F%84%85.
- How do I write U+1F105 in JavaScript or Python?
- JavaScript: \u{1F105} or \uD83C\uDD05. Python: \U0001F105.
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