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