This is the Unicode character Cancel, code point U+0018 (decimal 24) in the Basic Latin block, added in Unicode 1.1. In HTML write , and in UTF-8 it is the single byte 18.
Codes
| Where | How to write it |
|---|---|
| Code point | U+0018 |
| Decimal | 24 |
| UTF-8 bytes | 18 |
| UTF-16 (big-endian) | 0018 |
| UTF-32 | 00000018 |
| HTML | not valid in HTML (a numeric reference to it is a parse error) |
| CSS | \18 |
| JavaScript | \u0018 |
| JSON | \u0018 |
| Python | \u0018 |
| Java, C# | \u0018 |
| Rust, Swift | \u{18} |
| Go, C, C++ | \u0018 |
| URL (percent-encoded) | %18 |
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 | Cancel |
| Code point | U+0018 (decimal 24) |
| Block | Basic Latin (U+0000–U+007F) |
| General category | Cc: Control character |
| Script | Common |
| Bidirectional class | BN: Boundary neutral |
| Mirrored in right-to-left text | No |
| First in Unicode version | 1.1 |
Nearby in Basic Latin
- U+0010 Data Link Escape
- U+0011 Device Control One
- U+0012 Device Control Two
- U+0013 Device Control Three
- U+0014 Device Control Four
- U+0015 Negative Acknowledge
- U+0016 Synchronous Idle
- U+0017 End Of Transmission Block
- U+0019 End Of Medium
- U+001A Substitute
- U+001B Escape
- U+001C Information Separator Four
- U+001D Information Separator Three
- U+001E Information Separator Two
- U+001F Information Separator One
- U+0020 Space
All 128 characters: Basic Latin.
Official reference
Questions people ask
- What is the HTML code for Cancel?
- Use  (decimal) or  (hex).
- What is the UTF-8 encoding of U+0018?
- 18 (hex), 1 byte. In a URL it is %18.
- How do I write U+0018 in JavaScript or Python?
- JavaScript: \u0018. Python: \u0018.
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