Unicode Character "―" (U+2015)

The character ― (HORIZONTAL BAR) is represented by the Unicode codepoint U+2015. It is encoded in the General Punctuation block, which belongs to the Basic Multilingual Plane. It was added to Unicode in version 1.1 (June, 1993). It is HTML encoded as ―.

Main Unicode Properties

Name HORIZONTAL BAR
Unicode Codepoint U+2015
Unicode Version 1.1 (June, 1993)
Block General Punctuation
Plane Basic Multilingual Plane

Bidirectional Data

Bidirectional class Other Neutral (ON)
Is mirrored? No

Other Unicode Data

U+2015 Conversion

HTML (decimal) ―
HTML (hex) ―
HTML (named) ―
URL Escape Code %E2%80%95
CSS \2015
JavaScript \u{2015}
JSON \u2015
C, C++ \U00002015
Java \u2015
Python \U00002015
Rust \u{2015}
Ruby \u{2015}

How to type "―"

  • Windows ?: Hold Alt, then type 2 0 1 5. Release Alt.
  • Mac ?: Hold Alt ⌥, then type 2 0 1 5. Release Alt.

Preview

  • ―
    Times, Times New Roman, serif
  • ―
    Helvetica, Arial, sans-serif
  • ―
    Courier, Courier New, monospace

UTF Encodings

UTF-8 (hex) 0xE2 0x80 0x95
UTF-16 (hex) 0x2015
UTF-32 (hex) 0x00002015

References