DevKits

ASCII 172

Not Sign (¬)

Latin-1 Supplement

Latin-1 character.

All encodings at a glance

Decimal172
Hexadecimal0xAC
Octal0254
Binary10101100
HTML numeric entity¬
HTML named entity¬
URL encoding%AC
UTF-8 bytes0xC2 0xAC

Code snippets

JavaScript

String.fromCharCode(172); // "¬"
172.toString(16); // "ac"

Python

chr(172)           # control char ¬
ord(chr(172))      # 172
hex(172)           # '0xac'

HTML

&not;   <!-- named entity -->
&#172;   <!-- numeric entity -->

Unicode & UTF-8 note

In Unicode this is U+00AC. In UTF-8 it encodes to the byte sequence 0xC2 0xAC. In legacy Latin-1 (ISO-8859-1) it is a single byte 0xAC, which is why Latin-1 files often appear as mojibake when interpreted as UTF-8.

Nearby codes