π is the Unicode character BLACK CIRCLE WITH WHITE VERTICAL BAR, code point U+1F7DA (decimal 128986) in the Geometric Shapes Extended block, added in Unicode 18.0. In HTML write 🟚, and in UTF-8 it is the 4 bytes F0 9F 9F 9A.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1F7DA |
| Decimal | 128986 |
| UTF-8 bytes | F0 9F 9F 9A |
| UTF-16 (big-endian) | D83D DFDA |
| UTF-32 | 0001F7DA |
| HTML decimal | 🟚 |
| HTML hex | 🟚 |
| CSS | \1F7DA |
| JavaScript | \u{1F7DA} or \uD83D\uDFDA |
| JSON | \uD83D\uDFDA |
| Python | \U0001F7DA |
| Python by name | \N{BLACK CIRCLE WITH WHITE VERTICAL BAR} |
| Java, C# | \uD83D\uDFDA |
| Rust, Swift | \u{1F7DA} |
| Go, C, C++ | \U0001F7DA |
| URL (percent-encoded) | %F0%9F%9F%9A |
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 | BLACK CIRCLE WITH WHITE VERTICAL BAR |
| Code point | U+1F7DA (decimal 128986) |
| Block | Geometric Shapes Extended (U+1F780βU+1F7FF) |
| General category | So: Other symbol |
| Script | Common |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 18.0 |
Nearby in Geometric Shapes Extended
- π U+1F7D2 Light Twelve Pointed Black Star
- π U+1F7D3 Heavy Twelve Pointed Black Star
- π U+1F7D4 Heavy Twelve Pointed Pinwheel Star
- π U+1F7D5 Circled Triangle
- π U+1F7D6 Negative Circled Triangle
- π U+1F7D7 Circled Square
- π U+1F7D8 Negative Circled Square
- π U+1F7D9 Nine Pointed White Star
- π U+1F7DB Bullet In Double Circle
- π U+1F7E0 Orange circle
- π‘ U+1F7E1 Yellow circle
- π’ U+1F7E2 Green circle
- π£ U+1F7E3 Purple circle
- π€ U+1F7E4 Brown circle
- π₯ U+1F7E5 Red square
- π¦ U+1F7E6 Blue square
All 120 characters: Geometric Shapes Extended.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 🟚 (decimal) or 🟚 (hex).
- What is the UTF-8 encoding of U+1F7DA?
- F0 9F 9F 9A (hex), 4 bytes. In a URL it is %F0%9F%9F%9A.
- How do I write U+1F7DA in JavaScript or Python?
- JavaScript: \u{1F7DA} or \uD83D\uDFDA. Python: \U0001F7DA.
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