Ø is the Unicode character LATIN CAPITAL LETTER O WITH STROKE, code point U+00D8 (decimal 216) in the Latin-1 Supplement block, added in Unicode 1.1. In HTML write Ø, and in UTF-8 it is the 2 bytes C3 98.
Codes
| Where | How to write it |
|---|---|
| Code point | U+00D8 |
| Decimal | 216 |
| UTF-8 bytes | C3 98 |
| UTF-16 (big-endian) | 00D8 |
| UTF-32 | 000000D8 |
| HTML decimal | Ø |
| HTML hex | Ø |
| HTML named | Ø |
| CSS | \D8 |
| JavaScript | \u00D8 |
| JSON | \u00D8 |
| Python | \u00D8 |
| Python by name | \N{LATIN CAPITAL LETTER O WITH STROKE} |
| Java, C# | \u00D8 |
| Rust, Swift | \u{D8} |
| Go, C, C++ | \u00D8 |
| URL (percent-encoded) | %C3%98 |
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 | LATIN CAPITAL LETTER O WITH STROKE |
| Code point | U+00D8 (decimal 216) |
| Block | Latin-1 Supplement (U+0080–U+00FF) |
| General category | Lu: Uppercase letter |
| Script | Latin |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 1.1 |
Upper and lower case
- ø U+00F8 Latin Small Letter O With Stroke — Lowercase
Nearby in Latin-1 Supplement
- Ð U+00D0 Latin Capital Letter Eth
- Ñ U+00D1 Latin Capital Letter N With Tilde
- Ò U+00D2 Latin Capital Letter O With Grave
- Ó U+00D3 Latin Capital Letter O With Acute
- Ô U+00D4 Latin Capital Letter O With Circumflex
- Õ U+00D5 Latin Capital Letter O With Tilde
- Ö U+00D6 Latin Capital Letter O With Diaeresis
- × U+00D7 Multiplication Sign
- Ù U+00D9 Latin Capital Letter U With Grave
- Ú U+00DA Latin Capital Letter U With Acute
- Û U+00DB Latin Capital Letter U With Circumflex
- Ü U+00DC Latin Capital Letter U With Diaeresis
- Ý U+00DD Latin Capital Letter Y With Acute
- Þ U+00DE Latin Capital Letter Thorn
- ß U+00DF Latin Small Letter Sharp S
- à U+00E0 Latin Small Letter A With Grave
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+00D8?
- C3 98 (hex), 2 bytes. In a URL it is %C3%98.
- How do I write U+00D8 in JavaScript or Python?
- JavaScript: \u00D8. Python: \u00D8.
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