ASCII 166
Broken Bar (¦)
Latin-1 Supplement
Latin-1 character.
All encodings at a glance
| Decimal | 166 |
| Hexadecimal | 0xA6 |
| Octal | 0246 |
| Binary | 10100110 |
| HTML numeric entity | ¦ |
| HTML named entity | ¦ |
| URL encoding | %A6 |
| UTF-8 bytes | 0xC2 0xA6 |
Code snippets
JavaScript
String.fromCharCode(166); // "¦"
166.toString(16); // "a6"Python
chr(166) # control char ¦
ord(chr(166)) # 166
hex(166) # '0xa6'HTML
¦ <!-- named entity -->
¦ <!-- numeric entity -->Unicode & UTF-8 note
In Unicode this is U+00A6. In UTF-8 it encodes to the byte sequence 0xC2 0xA6. In legacy Latin-1 (ISO-8859-1) it is a single byte 0xA6, which is why Latin-1 files often appear as mojibake when interpreted as UTF-8.