DevKits

ASCII 164

Currency Sign (¤)

Latin-1 Supplement

Latin-1 character.

All encodings at a glance

Decimal164
Hexadecimal0xA4
Octal0244
Binary10100100
HTML numeric entity¤
HTML named entity¤
URL encoding%A4
UTF-8 bytes0xC2 0xA4

Code snippets

JavaScript

String.fromCharCode(164); // "¤"
164.toString(16); // "a4"

Python

chr(164)           # control char ¤
ord(chr(164))      # 164
hex(164)           # '0xa4'

HTML

&curren;   <!-- named entity -->
&#164;   <!-- numeric entity -->

Unicode & UTF-8 note

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

Nearby codes