π¦ is the Unicode emoji BAT, code point U+1F987 (decimal 129415) in the Supplemental Symbols and Pictographs block, added in Unicode 9.0. In HTML write 🦇, and in UTF-8 it is the 4 bytes F0 9F A6 87.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1F987 |
| Decimal | 129415 |
| UTF-8 bytes | F0 9F A6 87 |
| UTF-16 (big-endian) | D83E DD87 |
| UTF-32 | 0001F987 |
| HTML decimal | 🦇 |
| HTML hex | 🦇 |
| CSS | \1F987 |
| JavaScript | \u{1F987} or \uD83E\uDD87 |
| JSON | \uD83E\uDD87 |
| Python | \U0001F987 |
| Python by name | \N{BAT} |
| Java, C# | \uD83E\uDD87 |
| Rust, Swift | \u{1F987} |
| Go, C, C++ | \U0001F987 |
| URL (percent-encoded) | %F0%9F%A6%87 |
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 | BAT |
| Emoji name | bat |
| Code point | U+1F987 (decimal 129415) |
| 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 | 9.0 |
Nearby in Supplemental Symbols and Pictographs
- π₯Ώ U+1F97F Flat shoe
- π¦ U+1F980 Crab
- π¦ U+1F981 Lion
- π¦ U+1F982 Scorpion
- π¦ U+1F983 Turkey
- π¦ U+1F984 Unicorn
- π¦ U+1F985 Eagle
- π¦ U+1F986 Duck
- π¦ U+1F988 Shark
- π¦ U+1F989 Owl
- π¦ U+1F98A Fox
- π¦ U+1F98B Butterfly
- π¦ U+1F98C Deer
- π¦ U+1F98D Gorilla
- π¦ U+1F98E Lizard
- π¦ U+1F98F Rhinoceros
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+1F987?
- F0 9F A6 87 (hex), 4 bytes. In a URL it is %F0%9F%A6%87.
- How do I write U+1F987 in JavaScript or Python?
- JavaScript: \u{1F987} or \uD83E\uDD87. Python: \U0001F987.
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