¹ is the Unicode character SUPERSCRIPT ONE, code point U+00B9 (decimal 185) in the Latin-1 Supplement block, added in Unicode 1.1. In HTML write ¹, and in UTF-8 it is the 2 bytes C2 B9.
Codes
| Where | How to write it |
|---|---|
| Code point | U+00B9 |
| Decimal | 185 |
| UTF-8 bytes | C2 B9 |
| UTF-16 (big-endian) | 00B9 |
| UTF-32 | 000000B9 |
| HTML decimal | ¹ |
| HTML hex | ¹ |
| HTML named | ¹ |
| CSS | \B9 |
| JavaScript | \u00B9 |
| JSON | \u00B9 |
| Python | \u00B9 |
| Python by name | \N{SUPERSCRIPT ONE} |
| Java, C# | \u00B9 |
| Rust, Swift | \u{B9} |
| Go, C, C++ | \u00B9 |
| URL (percent-encoded) | %C2%B9 |
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 | SUPERSCRIPT ONE |
| Code point | U+00B9 (decimal 185) |
| Block | Latin-1 Supplement (U+0080–U+00FF) |
| General category | No: Other number |
| Script | Common |
| Bidirectional class | EN: European number |
| Numeric value | 1 |
| Mirrored in right-to-left text | No |
| First in Unicode version | 1.1 |
Decomposition
SUPERSCRIPT ONE has a compatibility decomposition (super) 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.
Nearby in Latin-1 Supplement
- ± U+00B1 Plus-Minus Sign
- ² U+00B2 Superscript Two
- ³ U+00B3 Superscript Three
- ´ U+00B4 Acute Accent
- µ U+00B5 Micro Sign
- ¶ U+00B6 Pilcrow Sign
- · U+00B7 Middle Dot
- ¸ U+00B8 Cedilla
- º U+00BA Masculine Ordinal Indicator
- » U+00BB Right-Pointing Double Angle Quotation Mark
- ¼ U+00BC Vulgar Fraction One Quarter
- ½ U+00BD Vulgar Fraction One Half
- ¾ U+00BE Vulgar Fraction Three Quarters
- ¿ U+00BF Inverted Question Mark
- À U+00C0 Latin Capital Letter A With Grave
- Á U+00C1 Latin Capital Letter A With Acute
All 128 characters: Latin-1 Supplement.
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+00B9?
- C2 B9 (hex), 2 bytes. In a URL it is %C2%B9.
- How do I write U+00B9 in JavaScript or Python?
- JavaScript: \u00B9. Python: \u00B9.
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