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