⁸ is the Unicode character SUPERSCRIPT EIGHT, code point U+2078 (decimal 8312) in the Superscripts and Subscripts block, added in Unicode 1.1. In HTML write ⁸, and in UTF-8 it is the 3 bytes E2 81 B8.
Codes
| Where | How to write it |
|---|---|
| Code point | U+2078 |
| Decimal | 8312 |
| UTF-8 bytes | E2 81 B8 |
| UTF-16 (big-endian) | 2078 |
| UTF-32 | 00002078 |
| HTML decimal | ⁸ |
| HTML hex | ⁸ |
| CSS | \2078 |
| JavaScript | \u2078 |
| JSON | \u2078 |
| Python | \u2078 |
| Python by name | \N{SUPERSCRIPT EIGHT} |
| Java, C# | \u2078 |
| Rust, Swift | \u{2078} |
| Go, C, C++ | \u2078 |
| URL (percent-encoded) | %E2%81%B8 |
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 EIGHT |
| Code point | U+2078 (decimal 8312) |
| Block | Superscripts and Subscripts (U+2070–U+209F) |
| General category | No: Other number |
| Script | Common |
| Bidirectional class | EN: European number |
| Numeric value | 8 |
| Mirrored in right-to-left text | No |
| First in Unicode version | 1.1 |
Decomposition
SUPERSCRIPT EIGHT 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 Superscripts and Subscripts
- ⁰ U+2070 Superscript Zero
- ⁱ U+2071 Superscript Latin Small Letter I
- ⁴ U+2074 Superscript Four
- ⁵ U+2075 Superscript Five
- ⁶ U+2076 Superscript Six
- ⁷ U+2077 Superscript Seven
- ⁹ U+2079 Superscript Nine
- ⁺ U+207A Superscript Plus Sign
- ⁻ U+207B Superscript Minus
- ⁼ U+207C Superscript Equals Sign
- ⁽ U+207D Superscript Left Parenthesis
- ⁾ U+207E Superscript Right Parenthesis
- ⁿ U+207F Superscript Latin Small Letter N
- ₀ U+2080 Subscript Zero
All 46 characters: Superscripts and Subscripts.
Official reference
Questions people ask
- What is the HTML code for ⁸?
- Use ⁸ (decimal) or ⁸ (hex).
- What is the UTF-8 encoding of U+2078?
- E2 81 B8 (hex), 3 bytes. In a URL it is %E2%81%B8.
- How do I write U+2078 in JavaScript or Python?
- JavaScript: \u2078. Python: \u2078.
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