π is the Unicode character MEDIUM THREE POINTED BLACK STAR, code point U+1F7C1 (decimal 128961) 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 9F 81.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1F7C1 |
| Decimal | 128961 |
| UTF-8 bytes | F0 9F 9F 81 |
| UTF-16 (big-endian) | D83D DFC1 |
| UTF-32 | 0001F7C1 |
| HTML decimal | 🟁 |
| HTML hex | 🟁 |
| CSS | \1F7C1 |
| JavaScript | \u{1F7C1} or \uD83D\uDFC1 |
| JSON | \uD83D\uDFC1 |
| Python | \U0001F7C1 |
| Python by name | \N{MEDIUM THREE POINTED BLACK STAR} |
| Java, C# | \uD83D\uDFC1 |
| Rust, Swift | \u{1F7C1} |
| Go, C, C++ | \U0001F7C1 |
| URL (percent-encoded) | %F0%9F%9F%81 |
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 | MEDIUM THREE POINTED BLACK STAR |
| Code point | U+1F7C1 (decimal 128961) |
| 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+1F7B9 Very Heavy Six Spoked Asterisk
- πΊ U+1F7BA Extremely Heavy Six Spoked Asterisk
- π» U+1F7BB Light Eight Spoked Asterisk
- πΌ U+1F7BC Medium Eight Spoked Asterisk
- π½ U+1F7BD Bold Eight Spoked Asterisk
- πΎ U+1F7BE Heavy Eight Spoked Asterisk
- πΏ U+1F7BF Very Heavy Eight Spoked Asterisk
- π U+1F7C0 Light Three Pointed Black Star
- π U+1F7C2 Three Pointed Black Star
- π U+1F7C3 Medium Three Pointed Pinwheel Star
- π U+1F7C4 Light Four Pointed Black Star
- π U+1F7C5 Medium Four Pointed Black Star
- π U+1F7C6 Four Pointed Black Star
- π U+1F7C7 Medium Four Pointed Pinwheel Star
- π U+1F7C8 Reverse Light Four Pointed Pinwheel Star
- π U+1F7C9 Light Five Pointed Black Star
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+1F7C1?
- F0 9F 9F 81 (hex), 4 bytes. In a URL it is %F0%9F%9F%81.
- How do I write U+1F7C1 in JavaScript or Python?
- JavaScript: \u{1F7C1} or \uD83D\uDFC1. Python: \U0001F7C1.
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