π is the Unicode character WHITE LOZENGE CONTAINING BLACK SMALL LOZENGE, code point U+1F7A0 (decimal 128928) in the Geometric Shapes Extended block, added in Unicode 7.0. In HTML write 🞠, and in UTF-8 it is the 4 bytes F0 9F 9E A0.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1F7A0 |
| Decimal | 128928 |
| UTF-8 bytes | F0 9F 9E A0 |
| UTF-16 (big-endian) | D83D DFA0 |
| UTF-32 | 0001F7A0 |
| HTML decimal | 🞠 |
| HTML hex | 🞠 |
| CSS | \1F7A0 |
| JavaScript | \u{1F7A0} or \uD83D\uDFA0 |
| JSON | \uD83D\uDFA0 |
| Python | \U0001F7A0 |
| Python by name | \N{WHITE LOZENGE CONTAINING BLACK SMALL LOZENGE} |
| Java, C# | \uD83D\uDFA0 |
| Rust, Swift | \u{1F7A0} |
| Go, C, C++ | \U0001F7A0 |
| URL (percent-encoded) | %F0%9F%9E%A0 |
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 | WHITE LOZENGE CONTAINING BLACK SMALL LOZENGE |
| Code point | U+1F7A0 (decimal 128928) |
| Block | Geometric Shapes Extended (U+1F780βU+1F7FF) |
| General category | So: Other symbol |
| Script | Common |
| Bidirectional class | ON: Other neutral |
| Mirrored in right-to-left text | No |
| First in Unicode version | 7.0 |
Nearby in Geometric Shapes Extended
- π U+1F798 Black Very Small Diamond
- π U+1F799 Black Medium Small Diamond
- π U+1F79A White Diamond Containing Black Very Small Diamond
- π U+1F79B White Diamond Containing Black Medium Diamond
- π U+1F79C Diamond Target
- π U+1F79D Black Tiny Lozenge
- π U+1F79E Black Very Small Lozenge
- π U+1F79F Black Medium Small Lozenge
- π‘ U+1F7A1 Thin Greek Cross
- π’ U+1F7A2 Light Greek Cross
- π£ U+1F7A3 Medium Greek Cross
- π€ U+1F7A4 Bold Greek Cross
- π₯ U+1F7A5 Very Bold Greek Cross
- π¦ U+1F7A6 Very Heavy Greek Cross
- π§ U+1F7A7 Extremely Heavy Greek Cross
- π¨ U+1F7A8 Thin Saltire
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+1F7A0?
- F0 9F 9E A0 (hex), 4 bytes. In a URL it is %F0%9F%9E%A0.
- How do I write U+1F7A0 in JavaScript or Python?
- JavaScript: \u{1F7A0} or \uD83D\uDFA0. Python: \U0001F7A0.
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