Dagger vs Double Hyphen
VS
Property Comparison
| Property | † 2020 | ⹀ 2E40 |
|---|---|---|
| Name | Dagger | Double Hyphen |
| Category | Punctuation | Punctuation |
| Block | General Punctuation | Supplemental Punctuation |
| Script | Zyyy | Zyyy |
| General Category | Other Punctuation (Po) | Dash Punctuation (Pd) |
| Bidirectional | ON | ON |
Encoding Comparison
| Format | 2020 | 2E40 |
|---|---|---|
| Unicode | U+2020 | U+2E40 |
| HTML Decimal | † | ⹀ |
| HTML Hex | † | ⹀ |
| CSS | \2020 | \2E40 |
| JavaScript | \u{2020} | \u{2E40} |
| Python | \u2020 | \u2e40 |
| UTF-8 | e2 80 a0 | e2 b9 80 |
How to Distinguish
Both Dagger and Double Hyphen are in the Punctuation category but reside in different Unicode blocks. Check the codepoint to tell them apart.
Tip: Paste the character into a hex editor or use
charCodeAt()
in JavaScript to check the actual codepoint.