Ampersand vs Currency Sign
VS
Property Comparison
| Property | & 0026 | ¤ 00A4 |
|---|---|---|
| Name | Ampersand | Currency Sign |
| Category | Latin Extended | Latin Extended |
| Block | Basic Latin | Latin-1 Supplement |
| Script | Zyyy | Zyyy |
| General Category | Other Punctuation (Po) | Currency Symbol (Sc) |
| Bidirectional | ON | ET |
Encoding Comparison
| Format | 0026 | 00A4 |
|---|---|---|
| Unicode | U+0026 | U+00A4 |
| HTML Decimal | & | ¤ |
| HTML Hex | & | ¤ |
| CSS | \0026 | \00A4 |
| JavaScript | \u{26} | \u{A4} |
| Python | \u0026 | \u00a4 |
| UTF-8 | 26 | c2 a4 |
How to Distinguish
Both Ampersand and Currency Sign 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.