☪ is the Unicode emoji STAR AND CRESCENT, code point U+262A (decimal 9770) in the Miscellaneous Symbols block, added in Unicode 1.1. In HTML write ☪, and in UTF-8 it is the 3 bytes E2 98 AA.
Codes
| Where | How to write it |
|---|---|
| Code point | U+262A |
| Decimal | 9770 |
| UTF-8 bytes | E2 98 AA |
| UTF-16 (big-endian) | 262A |
| UTF-32 | 0000262A |
| HTML decimal | ☪ |
| HTML hex | ☪ |
| CSS | \262A |
| JavaScript | \u262A |
| JSON | \u262A |
| Python | \u262A |
| Python by name | \N{STAR AND CRESCENT} |
| Java, C# | \u262A |
| Rust, Swift | \u{262A} |
| Go, C, C++ | \u262A |
| URL (percent-encoded) | %E2%98%AA |
JavaScript and JSON strings store text as UTF-16, so this character is one code unit long. Python 3 strings count code points, so its length there is 1.
Properties
| Property | Value |
|---|---|
| Name | STAR AND CRESCENT |
| Emoji name | star and crescent |
| Code point | U+262A (decimal 9770) |
| Block | Miscellaneous Symbols (U+2600–U+26FF) |
| General category | So: Other symbol |
| Script | Common |
| Bidirectional class | ON: Other neutral |
| Mirrored in right-to-left text | No |
| First in Unicode version | 1.1 |
Nearby in Miscellaneous Symbols
- ☢ U+2622 Radioactive
- ☣ U+2623 Biohazard
- ☤ U+2624 Caduceus
- ☥ U+2625 Ankh
- ☦ U+2626 Orthodox cross
- ☧ U+2627 Chi Rho
- ☨ U+2628 Cross Of Lorraine
- ☩ U+2629 Cross Of Jerusalem
- ☫ U+262B Farsi Symbol
- ☬ U+262C Adi Shakti
- ☭ U+262D Hammer And Sickle
- ☮ U+262E Peace symbol
- ☯ U+262F Yin yang
- ☰ U+2630 Trigram For Heaven
- ☱ U+2631 Trigram For Lake
- ☲ U+2632 Trigram For Fire
All 256 characters: Miscellaneous Symbols.
Official reference
Questions people ask
- What is the HTML code for ☪?
- Use ☪ (decimal) or ☪ (hex).
- What is the UTF-8 encoding of U+262A?
- E2 98 AA (hex), 3 bytes. In a URL it is %E2%98%AA.
- How do I write U+262A in JavaScript or Python?
- JavaScript: \u262A. Python: \u262A.
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