―

HORIZONTAL BAR

U+2015 Dash Punctuation (Pd) · General Punctuation · Common

Overview

― (HORIZONTAL BAR) is the Unicode character at code point U+2015. It belongs to the General Punctuation block, in the Dash Punctuation (Pd) general category.

On this page

Encoding Table

Format Value Copy
Code point U+2015
Decimal 8213
HTML decimal ―
HTML hex ―
CSS \2015
JavaScript \u{2015}
Python \u2015
Java \u2015
Go \u2015
Ruby \u{2015}
Rust \u{2015}
C / C++ \u2015
URL-encoded %E2%80%95
UTF-8 bytes e2 80 95
UTF-16BE bytes 20 15
UTF-32BE bytes 00 00 20 15

How to Use

HTML: ―
CSS: content: "\2015"
JavaScript: "\u{2015}"
Python: "\u2015"

Properties

Script
Common Zyyy
Category
Dash Punctuation (Pd)
Bidirectional
ON
Combining
0
Mirrored
No
← — U+2014 U+2016 ‖ →

Frequently Asked Questions

How do I type or copy HORIZONTAL BAR?

Copy ― directly, or use the HTML entity, UTF-8, and code encodings shown on this page.