– is the Unicode character EN DASH, code point U+2013 (decimal 8211) in the General Punctuation block, added in Unicode 1.1. In HTML write –, and in UTF-8 it is the 3 bytes E2 80 93.
Codes
| Where | How to write it |
|---|---|
| Code point | U+2013 |
| Decimal | 8211 |
| UTF-8 bytes | E2 80 93 |
| UTF-16 (big-endian) | 2013 |
| UTF-32 | 00002013 |
| HTML decimal | – |
| HTML hex | – |
| HTML named | – |
| CSS | \2013 |
| JavaScript | \u2013 |
| JSON | \u2013 |
| Python | \u2013 |
| Python by name | \N{EN DASH} |
| Java, C# | \u2013 |
| Rust, Swift | \u{2013} |
| Go, C, C++ | \u2013 |
| URL (percent-encoded) | %E2%80%93 |
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 | EN DASH |
| Code point | U+2013 (decimal 8211) |
| Block | General Punctuation (U+2000–U+206F) |
| General category | Pd: Dash punctuation |
| Script | Common |
| Bidirectional class | ON: Other neutral |
| Mirrored in right-to-left text | No |
| First in Unicode version | 1.1 |
Nearby in General Punctuation
- U+200B Zero Width Space
- U+200C Zero Width Non-Joiner
- U+200D Zero Width Joiner
- U+200E Left-To-Right Mark
- U+200F Right-To-Left Mark
- ‐ U+2010 Hyphen
- ‑ U+2011 Non-Breaking Hyphen
- ‒ U+2012 Figure Dash
- — U+2014 Em Dash
- ― U+2015 Horizontal Bar
- ‖ U+2016 Double Vertical Line
- ‗ U+2017 Double Low Line
- ‘ U+2018 Left Single Quotation Mark
- ’ U+2019 Right Single Quotation Mark
- ‚ U+201A Single Low-9 Quotation Mark
- ‛ U+201B Single High-Reversed-9 Quotation Mark
All 111 characters: General Punctuation.
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+2013?
- E2 80 93 (hex), 3 bytes. In a URL it is %E2%80%93.
- How do I write U+2013 in JavaScript or Python?
- JavaScript: \u2013. Python: \u2013.
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