―

U+2015 HORIZONTAL BAR

General Punctuation · Dash punctuation

NameHORIZONTAL BAR
Code pointU+2015
Decimal8213
BlockGeneral Punctuation
CategoryDash punctuation (Pd)
UTF-8E2 80 95
UTF-162015
UTF-3200002015
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.

Nearby entries