Hyphen vs Non-Breaking Hyphen
VS
Comparación de propiedades
| Propiedad | ‐ 2010 | ‑ 2011 |
|---|---|---|
| Nombre | Hyphen | Non-Breaking Hyphen |
| Categoría | Rayas y guiones | Rayas y guiones |
| Bloque | General Punctuation | General Punctuation |
| Escritura | Zyyy | Zyyy |
| Categoría general | Dash Punctuation (Pd) | Dash Punctuation (Pd) |
| Bidireccional | ON | ON |
Comparación de codificaciones
| Formato | 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 |
Cómo distinguirlos
Tanto Hyphen como Non-Breaking Hyphen pertenecen a la categoría Rayas y guiones y al bloque General Punctuation. Compare sus puntos de código y renderizado visual para distinguirlos.
Consejo: Pegue el carácter en un editor hexadecimal o use
charCodeAt()
en JavaScript para verificar el punto de código real.