⌀ is the Unicode character DIAMETER SIGN, code point U+2300 (decimal 8960) in the Miscellaneous Technical block, added in Unicode 1.1. In HTML write ⌀, and in UTF-8 it is the 3 bytes E2 8C 80.
Codes
| Where | How to write it |
|---|---|
| Code point | U+2300 |
| Decimal | 8960 |
| UTF-8 bytes | E2 8C 80 |
| UTF-16 (big-endian) | 2300 |
| UTF-32 | 00002300 |
| HTML decimal | ⌀ |
| HTML hex | ⌀ |
| CSS | \2300 |
| JavaScript | \u2300 |
| JSON | \u2300 |
| Python | \u2300 |
| Python by name | \N{DIAMETER SIGN} |
| Java, C# | \u2300 |
| Rust, Swift | \u{2300} |
| Go, C, C++ | \u2300 |
| URL (percent-encoded) | %E2%8C%80 |
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 | DIAMETER SIGN |
| Code point | U+2300 (decimal 8960) |
| Block | Miscellaneous Technical (U+2300–U+23FF) |
| 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 |
Nearby in Miscellaneous Technical
- ⌁ U+2301 Electric Arrow
- ⌂ U+2302 House
- ⌃ U+2303 Up Arrowhead
- ⌄ U+2304 Down Arrowhead
- ⌅ U+2305 Projective
- ⌆ U+2306 Perspective
- ⌇ U+2307 Wavy Line
- ⌈ U+2308 Left Ceiling
All 256 characters: Miscellaneous Technical.
Official reference
Questions people ask
- What is the HTML code for ⌀?
- Use ⌀ (decimal) or ⌀ (hex).
- What is the UTF-8 encoding of U+2300?
- E2 8C 80 (hex), 3 bytes. In a URL it is %E2%8C%80.
- How do I write U+2300 in JavaScript or Python?
- JavaScript: \u2300. Python: \u2300.
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