Ampersand vs Inverted Exclamation Mark
VS
Property Comparison
| Property | & 0026 | ¡ 00A1 |
|---|---|---|
| Name | Ampersand | Inverted Exclamation Mark |
| Category | Latin Extended | Latin Extended |
| Block | Basic Latin | Latin-1 Supplement |
| Script | Zyyy | Zyyy |
| General Category | Other Punctuation (Po) | Other Punctuation (Po) |
| Bidirectional | ON | ON |
Encoding Comparison
| Format | 0026 | 00A1 |
|---|---|---|
| Unicode | U+0026 | U+00A1 |
| HTML Decimal | & | ¡ |
| HTML Hex | & | ¡ |
| CSS | \0026 | \00A1 |
| JavaScript | \u{26} | \u{A1} |
| Python | \u0026 | \u00a1 |
| UTF-8 | 26 | c2 a1 |
How to Distinguish
Both Ampersand and Inverted Exclamation Mark are in the Latin Extended 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.