π§ is the Unicode emoji CUPCAKE, code point U+1F9C1 (decimal 129473) in the Supplemental Symbols and Pictographs block, added in Unicode 11.0. In HTML write 🧁, and in UTF-8 it is the 4 bytes F0 9F A7 81.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1F9C1 |
| Decimal | 129473 |
| UTF-8 bytes | F0 9F A7 81 |
| UTF-16 (big-endian) | D83E DDC1 |
| UTF-32 | 0001F9C1 |
| HTML decimal | 🧁 |
| HTML hex | 🧁 |
| CSS | \1F9C1 |
| JavaScript | \u{1F9C1} or \uD83E\uDDC1 |
| JSON | \uD83E\uDDC1 |
| Python | \U0001F9C1 |
| Python by name | \N{CUPCAKE} |
| Java, C# | \uD83E\uDDC1 |
| Rust, Swift | \u{1F9C1} |
| Go, C, C++ | \U0001F9C1 |
| URL (percent-encoded) | %F0%9F%A7%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 | CUPCAKE |
| Emoji name | cupcake |
| Code point | U+1F9C1 (decimal 129473) |
| Block | Supplemental Symbols and Pictographs (U+1F900βU+1F9FF) |
| General category | So: Other symbol |
| Script | Common |
| Bidirectional class | ON: Other neutral |
| Mirrored in right-to-left text | No |
| First in Unicode version | 11.0 |
Nearby in Supplemental Symbols and Pictographs
- π¦Ή U+1F9B9 Supervillain
- π¦Ί U+1F9BA Safety vest
- 𦻠U+1F9BB Ear with hearing aid
- π¦Ό U+1F9BC Motorized wheelchair
- 𦽠U+1F9BD Manual wheelchair
- π¦Ύ U+1F9BE Mechanical arm
- π¦Ώ U+1F9BF Mechanical leg
- π§ U+1F9C0 Cheese wedge
- π§ U+1F9C2 Salt
- π§ U+1F9C3 Beverage box
- π§ U+1F9C4 Garlic
- π§ U+1F9C5 Onion
- π§ U+1F9C6 Falafel
- π§ U+1F9C7 Waffle
- π§ U+1F9C8 Butter
- π§ U+1F9C9 Mate
All 256 characters: Supplemental Symbols and Pictographs.
Official reference
Questions people ask
- What is the HTML code for π§?
- Use 🧁 (decimal) or 🧁 (hex).
- What is the UTF-8 encoding of U+1F9C1?
- F0 9F A7 81 (hex), 4 bytes. In a URL it is %F0%9F%A7%81.
- How do I write U+1F9C1 in JavaScript or Python?
- JavaScript: \u{1F9C1} or \uD83E\uDDC1. Python: \U0001F9C1.
Source
Unicode Character Database 18.0.0 (Unicode License v3) and the Unicode emoji test data; 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