Ampersand vs Digit Two
VS
Property Comparison
| Property | & 0026 | 2 0032 |
|---|---|---|
| Name | Ampersand | Digit Two |
| Category | Latin Extended | Latin Extended |
| Block | Basic Latin | Basic Latin |
| Script | Zyyy | Zyyy |
| General Category | Other Punctuation (Po) | Decimal Number (Nd) |
| Bidirectional | ON | EN |
Encoding Comparison
| Format | 0026 | 0032 |
|---|---|---|
| Unicode | U+0026 | U+0032 |
| HTML Decimal | & | 2 |
| HTML Hex | & | 2 |
| CSS | \0026 | \0032 |
| JavaScript | \u{26} | \u{32} |
| Python | \u0026 | \u0032 |
| UTF-8 | 26 | 32 |
How to Distinguish
Both Ampersand and Digit Two belong to the Latin Extended category and the Basic Latin block. Compare their codepoints and visual rendering to distinguish them.
Tip: Paste the character into a hex editor or use
charCodeAt()
in JavaScript to check the actual codepoint.