Ampersand vs Apostrophe
VS
Property Comparison
| Property | & 0026 | ' 0027 |
|---|---|---|
| Name | Ampersand | Apostrophe |
| Category | Latin Extended | Latin Extended |
| Block | Basic Latin | Basic Latin |
| Script | Zyyy | Zyyy |
| General Category | Other Punctuation (Po) | Other Punctuation (Po) |
| Bidirectional | ON | ON |
Encoding Comparison
| Format | 0026 | 0027 |
|---|---|---|
| Unicode | U+0026 | U+0027 |
| HTML Decimal | & | ' |
| HTML Hex | & | ' |
| CSS | \0026 | \0027 |
| JavaScript | \u{26} | \u{27} |
| Python | \u0026 | \u0027 |
| UTF-8 | 26 | 27 |
How to Distinguish
Both Ampersand and Apostrophe 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.