℃ is the Unicode character DEGREE CELSIUS, code point U+2103 (decimal 8451) in the Letterlike Symbols block, added in Unicode 1.1. In HTML write ℃, and in UTF-8 it is the 3 bytes E2 84 83.
Codes
| Where | How to write it |
|---|---|
| Code point | U+2103 |
| Decimal | 8451 |
| UTF-8 bytes | E2 84 83 |
| UTF-16 (big-endian) | 2103 |
| UTF-32 | 00002103 |
| HTML decimal | ℃ |
| HTML hex | ℃ |
| CSS | \2103 |
| JavaScript | \u2103 |
| JSON | \u2103 |
| Python | \u2103 |
| Python by name | \N{DEGREE CELSIUS} |
| Java, C# | \u2103 |
| Rust, Swift | \u{2103} |
| Go, C, C++ | \u2103 |
| URL (percent-encoded) | %E2%84%83 |
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 | DEGREE CELSIUS |
| Code point | U+2103 (decimal 8451) |
| Block | Letterlike Symbols (U+2100–U+214F) |
| General category | So: Other symbol |
| Script | Common |
| Bidirectional class | ON: Other neutral |
| Mirrored in right-to-left text | No |
| First in Unicode version | 1.1 |
Decomposition
DEGREE CELSIUS 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.
Nearby in Letterlike Symbols
- ℀ U+2100 Account Of
- ℁ U+2101 Addressed To The Subject
- ℂ U+2102 Double-Struck Capital C
- ℄ U+2104 Centre Line Symbol
- ℅ U+2105 Care Of
- ℆ U+2106 Cada Una
- ℇ U+2107 Euler Constant
- ℈ U+2108 Scruple
- ℉ U+2109 Degree Fahrenheit
- ℊ U+210A Script Small G
- ℋ U+210B Script Capital H
All 80 characters: Letterlike Symbols.
Official reference
Questions people ask
- What is the HTML code for ℃?
- Use ℃ (decimal) or ℃ (hex).
- What is the UTF-8 encoding of U+2103?
- E2 84 83 (hex), 3 bytes. In a URL it is %E2%84%83.
- How do I write U+2103 in JavaScript or Python?
- JavaScript: \u2103. Python: \u2103.
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