Hyphen vs Non-Breaking Hyphen
VS
Comparaison des propriétés
| Propriété | ‐ 2010 | ‑ 2011 |
|---|---|---|
| Nom | Hyphen | Non-Breaking Hyphen |
| Catégorie | Dashes & Hyphens | Dashes & Hyphens |
| Bloc | General Punctuation | General Punctuation |
| Écriture | Zyyy | Zyyy |
| Catégorie générale | Dash Punctuation (Pd) | Dash Punctuation (Pd) |
| Bidirectionnel | ON | ON |
Comparaison d'encodages
| Format | 2010 | 2011 |
|---|---|---|
| Unicode | U+2010 | U+2011 |
| HTML Decimal | ‐ | ‑ |
| HTML Hex | ‐ | ‑ |
| CSS | \2010 | \2011 |
| JavaScript | \u{2010} | \u{2011} |
| Python | \u2010 | \u2011 |
| UTF-8 | e2 80 90 | e2 80 91 |
Comment les distinguer
Hyphen et Non-Breaking Hyphen appartiennent tous deux à la catégorie Dashes & Hyphens et au bloc General Punctuation. Comparez leurs points de code et leur rendu visuel pour les distinguer.
Conseil : Collez le caractère dans un éditeur hexadécimal ou utilisez
charCodeAt()
en JavaScript pour vérifier le point de code réel.