‒ is the Unicode character FIGURE DASH, code point U+2012 (decimal 8210) in the General Punctuation block, added in Unicode 1.1. In HTML write ‒, and in UTF-8 it is the 3 bytes E2 80 92.
Codes
| Where | How to write it |
|---|---|
| Code point | U+2012 |
| Decimal | 8210 |
| UTF-8 bytes | E2 80 92 |
| UTF-16 (big-endian) | 2012 |
| UTF-32 | 00002012 |
| HTML decimal | ‒ |
| HTML hex | ‒ |
| CSS | \2012 |
| JavaScript | \u2012 |
| JSON | \u2012 |
| Python | \u2012 |
| Python by name | \N{FIGURE DASH} |
| Java, C# | \u2012 |
| Rust, Swift | \u{2012} |
| Go, C, C++ | \u2012 |
| URL (percent-encoded) | %E2%80%92 |
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 | FIGURE DASH |
| Code point | U+2012 (decimal 8210) |
| 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+200A Hair Space
- 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+2013 En 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
All 111 characters: General Punctuation.
Official reference
Questions people ask
- What is the HTML code for ‒?
- Use ‒ (decimal) or ‒ (hex).
- What is the UTF-8 encoding of U+2012?
- E2 80 92 (hex), 3 bytes. In a URL it is %E2%80%92.
- How do I write U+2012 in JavaScript or Python?
- JavaScript: \u2012. Python: \u2012.
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