DevKits

ASCII 166

Broken Bar (¦)

Latin-1 Supplement

Latin-1 character.

All encodings at a glance

Decimal166
Hexadecimal0xA6
Octal0246
Binary10100110
HTML numeric entity¦
HTML named entity¦
URL encoding%A6
UTF-8 bytes0xC2 0xA6

Code snippets

JavaScript

String.fromCharCode(166); // "¦"
166.toString(16); // "a6"

Python

chr(166)           # control char ¦
ord(chr(166))      # 166
hex(166)           # '0xa6'

HTML

&brvbar;   <!-- named entity -->
&#166;   <!-- 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.

Nearby codes