DevKits

ASCII 175

Macron (¯)

Latin-1 Supplement

Latin-1 character.

All encodings at a glance

Decimal175
Hexadecimal0xAF
Octal0257
Binary10101111
HTML numeric entity¯
HTML named entity¯
URL encoding%AF
UTF-8 bytes0xC2 0xAF

Code snippets

JavaScript

String.fromCharCode(175); // "¯"
175.toString(16); // "af"

Python

chr(175)           # control char ¯
ord(chr(175))      # 175
hex(175)           # '0xaf'

HTML

&macr;   <!-- named entity -->
&#175;   <!-- numeric entity -->

Unicode & UTF-8 note

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

Nearby codes