☆ is the Unicode character WHITE STAR, code point U+2606 (decimal 9734) in the Miscellaneous Symbols block, added in Unicode 1.1. In HTML write ☆, and in UTF-8 it is the 3 bytes E2 98 86.
Codes
| Where | How to write it |
|---|---|
| Code point | U+2606 |
| Decimal | 9734 |
| UTF-8 bytes | E2 98 86 |
| UTF-16 (big-endian) | 2606 |
| UTF-32 | 00002606 |
| HTML decimal | ☆ |
| HTML hex | ☆ |
| HTML named | ☆ |
| CSS | \2606 |
| JavaScript | \u2606 |
| JSON | \u2606 |
| Python | \u2606 |
| Python by name | \N{WHITE STAR} |
| Java, C# | \u2606 |
| Rust, Swift | \u{2606} |
| Go, C, C++ | \u2606 |
| URL (percent-encoded) | %E2%98%86 |
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 | WHITE STAR |
| Code point | U+2606 (decimal 9734) |
| 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+2600 Sun
- ☁ U+2601 Cloud
- ☂ U+2602 Umbrella
- ☃ U+2603 Snowman
- ☄ U+2604 Comet
- ★ U+2605 Black Star
- ☇ U+2607 Lightning
- ☈ U+2608 Thunderstorm
- ☉ U+2609 Sun
- ☊ U+260A Ascending Node
- ☋ U+260B Descending Node
- ☌ U+260C Conjunction
- ☍ U+260D Opposition
- ☎ U+260E Telephone
All 256 characters: Miscellaneous Symbols.
Official reference
Questions people ask
- What is the HTML code for ☆?
- Use the named entity ☆, or ☆ (decimal) or ☆ (hex).
- What is the UTF-8 encoding of U+2606?
- E2 98 86 (hex), 3 bytes. In a URL it is %E2%98%86.
- How do I write U+2606 in JavaScript or Python?
- JavaScript: \u2606. Python: \u2606.
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