―
U+2015 HORIZONTAL BAR
General Punctuation · Dash punctuation
| Name | HORIZONTAL BAR |
|---|---|
| Code point | U+2015 |
| Decimal | 8213 |
| Block | General Punctuation |
| Category | Dash punctuation (Pd) |
| UTF-8 | E2 80 95 |
| UTF-16 | 2015 |
| UTF-32 | 00002015 |
| HTML | ― ― |
| CSS | \2015 |
| JavaScript | \u2015 |
| Python | \u2015 |
| URL-encoded | %E2%80%95 |
Frequently asked questions
What is the character U+2015?
U+2015 ― is officially named HORIZONTAL BAR. It belongs to the General Punctuation block and the category Dash punctuation.
How do I type ―?
Windows (Word, WordPad): type 2015, then press Alt+X. Linux (GTK/IBus): Ctrl+Shift+U 2015, then Space. macOS: enable the “Unicode Hex Input” keyboard, hold Option and type 2015. Or simply copy it from this page.
How do I write ― in HTML?
As a numeric character reference ― (decimal) or ― (hexadecimal). In UTF-8 documents you can also insert the character directly.
How is ― encoded in UTF-8?
In UTF-8 the character takes 3 bytes: E2 80 95. In UTF-16: 2015.