| Nom du symbole | Horizontal Bar |
| Version Unicode | 1.1 |
| Unicode | U+2015 |
| Bloc Unicode | |
| Catégorie générale | Dash Punctuation (Pd) |
| Code CSS | \2015 |
| Code hexadécimal | 0x2015 |
| Code HTML | ― |
| LaTeX | \text{HORIZONTALBAR} |
| Symbole | ― |
| Encodage URL (pourcent UTF-8) | %E2%80%95 |
| Nom oral / lecteur d’écran | Horizontal Bar |
| UTF-8 | E2 80 95 |
| UTF-16 | 2015 |
| UTF-32 | 00002015 |
1\documentclass{article}2\usepackage{pifont}3\text{HORIZONTALBAR}4\end{document}Vous pouvez saisir le symbole horizontal bar sur la plupart des appareils modernes avec les méthodes suivantes :
Alt + 8213 on Windows (numeric keypad with Num Lock), or insert via Character Map.
Edit → Emoji & Symbols, search "horizontal bar", or use Unicode Hex Input with 2015.
Ctrl + Shift + U, type 2015, then Enter (layout-dependent).
Paste from this page, use text replacement, or pick from the symbol keyboard.
Paste from this page or use a keyboard with geometric symbol support.
1span.horizontal-bar::before { content: "\2015"; }1<span>―</span>La représentation du symbole Horizontal Bar dans différents langages de programmation se trouve dans le tableau ci-dessous :
| Langage | Représentation |
|---|---|
| JavaScript / TypeScript | '\u2015' or String.fromCodePoint(8213) |
| Python | '\N{HORIZONTAL BAR}' or chr(8213) |
| Rust | '\u{2015}' |
| C / C++ | UTF-8 source or wchar_t with U+2015 |
| Go | string(rune(0x2015)) |
| Ruby | "\u{2015}" |