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