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