Ⅱ is the Unicode character ROMAN NUMERAL TWO, code point U+2161 (decimal 8545) in the Number Forms block, added in Unicode 1.1. In HTML write Ⅱ, and in UTF-8 it is the 3 bytes E2 85 A1.
Codes
| Where | How to write it |
|---|---|
| Code point | U+2161 |
| Decimal | 8545 |
| UTF-8 bytes | E2 85 A1 |
| UTF-16 (big-endian) | 2161 |
| UTF-32 | 00002161 |
| HTML decimal | Ⅱ |
| HTML hex | Ⅱ |
| CSS | \2161 |
| JavaScript | \u2161 |
| JSON | \u2161 |
| Python | \u2161 |
| Python by name | \N{ROMAN NUMERAL TWO} |
| Java, C# | \u2161 |
| Rust, Swift | \u{2161} |
| Go, C, C++ | \u2161 |
| URL (percent-encoded) | %E2%85%A1 |
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 | ROMAN NUMERAL TWO |
| Code point | U+2161 (decimal 8545) |
| Block | Number Forms (U+2150–U+218F) |
| General category | Nl: Letter number |
| Script | Latin |
| Bidirectional class | L: Left-to-right |
| Numeric value | 2 |
| Mirrored in right-to-left text | No |
| First in Unicode version | 1.1 |
Decomposition
ROMAN NUMERAL TWO has a compatibility decomposition (compat) to the sequence below. NFKC and NFKD normalisation replace it with that sequence, which can change how text looks, so use them for search, not for storage.
Upper and lower case
- ⅱ U+2171 Small Roman Numeral Two — Lowercase
Nearby in Number Forms
- ⅙ U+2159 Vulgar Fraction One Sixth
- ⅚ U+215A Vulgar Fraction Five Sixths
- ⅛ U+215B Vulgar Fraction One Eighth
- ⅜ U+215C Vulgar Fraction Three Eighths
- ⅝ U+215D Vulgar Fraction Five Eighths
- ⅞ U+215E Vulgar Fraction Seven Eighths
- ⅟ U+215F Fraction Numerator One
- Ⅰ U+2160 Roman Numeral One
- Ⅲ U+2162 Roman Numeral Three
- Ⅳ U+2163 Roman Numeral Four
- Ⅴ U+2164 Roman Numeral Five
- Ⅵ U+2165 Roman Numeral Six
- Ⅶ U+2166 Roman Numeral Seven
- Ⅷ U+2167 Roman Numeral Eight
- Ⅸ U+2168 Roman Numeral Nine
- Ⅹ U+2169 Roman Numeral Ten
All 60 characters: Number Forms.
Official reference
Questions people ask
- What is the HTML code for Ⅱ?
- Use Ⅱ (decimal) or Ⅱ (hex).
- What is the UTF-8 encoding of U+2161?
- E2 85 A1 (hex), 3 bytes. In a URL it is %E2%85%A1.
- How do I write U+2161 in JavaScript or Python?
- JavaScript: \u2161. Python: \u2161.
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