๒ is the Unicode character THAI DIGIT TWO, code point U+0E52 (decimal 3666) in the Thai block, added in Unicode 1.1. In HTML write ๒, and in UTF-8 it is the 3 bytes E0 B9 92.
Codes
| Where | How to write it |
|---|---|
| Code point | U+0E52 |
| Decimal | 3666 |
| UTF-8 bytes | E0 B9 92 |
| UTF-16 (big-endian) | 0E52 |
| UTF-32 | 00000E52 |
| HTML decimal | ๒ |
| HTML hex | ๒ |
| CSS | \E52 |
| JavaScript | \u0E52 |
| JSON | \u0E52 |
| Python | \u0E52 |
| Python by name | \N{THAI DIGIT TWO} |
| Java, C# | \u0E52 |
| Rust, Swift | \u{E52} |
| Go, C, C++ | \u0E52 |
| URL (percent-encoded) | %E0%B9%92 |
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 | THAI DIGIT TWO |
| Code point | U+0E52 (decimal 3666) |
| Block | Thai (U+0E00–U+0E7F) |
| General category | Nd: Decimal digit |
| Script | Thai |
| Bidirectional class | L: Left-to-right |
| Numeric value | 2 |
| Mirrored in right-to-left text | No |
| First in Unicode version | 1.1 |
Nearby in Thai
- U+0E4A Thai Character Mai Tri
- U+0E4B Thai Character Mai Chattawa
- U+0E4C Thai Character Thanthakhat
- U+0E4D Thai Character Nikhahit
- U+0E4E Thai Character Yamakkan
- ๏ U+0E4F Thai Character Fongman
- ๐ U+0E50 Thai Digit Zero
- ๑ U+0E51 Thai Digit One
- ๓ U+0E53 Thai Digit Three
- ๔ U+0E54 Thai Digit Four
- ๕ U+0E55 Thai Digit Five
- ๖ U+0E56 Thai Digit Six
- ๗ U+0E57 Thai Digit Seven
- ๘ U+0E58 Thai Digit Eight
- ๙ U+0E59 Thai Digit Nine
- ๚ U+0E5A Thai Character Angkhankhu
All 87 characters: Thai.
Official reference
Questions people ask
- What is the HTML code for ๒?
- Use ๒ (decimal) or ๒ (hex).
- What is the UTF-8 encoding of U+0E52?
- E0 B9 92 (hex), 3 bytes. In a URL it is %E0%B9%92.
- How do I write U+0E52 in JavaScript or Python?
- JavaScript: \u0E52. Python: \u0E52.
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