၂ is the Unicode character MYANMAR DIGIT TWO, code point U+1042 (decimal 4162) in the Myanmar block, added in Unicode 3.0. In HTML write ၂, and in UTF-8 it is the 3 bytes E1 81 82.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1042 |
| Decimal | 4162 |
| UTF-8 bytes | E1 81 82 |
| UTF-16 (big-endian) | 1042 |
| UTF-32 | 00001042 |
| HTML decimal | ၂ |
| HTML hex | ၂ |
| CSS | \1042 |
| JavaScript | \u1042 |
| JSON | \u1042 |
| Python | \u1042 |
| Python by name | \N{MYANMAR DIGIT TWO} |
| Java, C# | \u1042 |
| Rust, Swift | \u{1042} |
| Go, C, C++ | \u1042 |
| URL (percent-encoded) | %E1%81%82 |
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 | MYANMAR DIGIT TWO |
| Code point | U+1042 (decimal 4162) |
| Block | Myanmar (U+1000–U+109F) |
| General category | Nd: Decimal digit |
| Script | Myanmar |
| Bidirectional class | L: Left-to-right |
| Numeric value | 2 |
| Mirrored in right-to-left text | No |
| First in Unicode version | 3.0 |
Nearby in Myanmar
- U+103A Myanmar Sign Asat
- U+103B Myanmar Consonant Sign Medial Ya
- U+103C Myanmar Consonant Sign Medial Ra
- U+103D Myanmar Consonant Sign Medial Wa
- U+103E Myanmar Consonant Sign Medial Ha
- ဿ U+103F Myanmar Letter Great Sa
- ၀ U+1040 Myanmar Digit Zero
- ၁ U+1041 Myanmar Digit One
- ၃ U+1043 Myanmar Digit Three
- ၄ U+1044 Myanmar Digit Four
- ၅ U+1045 Myanmar Digit Five
- ၆ U+1046 Myanmar Digit Six
- ၇ U+1047 Myanmar Digit Seven
- ၈ U+1048 Myanmar Digit Eight
- ၉ U+1049 Myanmar Digit Nine
- ၊ U+104A Myanmar Sign Little Section
All 160 characters: Myanmar.
Official reference
Questions people ask
- What is the HTML code for ၂?
- Use ၂ (decimal) or ၂ (hex).
- What is the UTF-8 encoding of U+1042?
- E1 81 82 (hex), 3 bytes. In a URL it is %E1%81%82.
- How do I write U+1042 in JavaScript or Python?
- JavaScript: \u1042. Python: \u1042.
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