DevKits

ASCII 185

Superscript One (¹)

Latin-1 Supplement

Latin-1 character.

All encodings at a glance

Decimal185
Hexadecimal0xB9
Octal0271
Binary10111001
HTML numeric entity¹
HTML named entity¹
URL encoding%B9
UTF-8 bytes0xC2 0xB9

Code snippets

JavaScript

String.fromCharCode(185); // "¹"
185.toString(16); // "b9"

Python

chr(185)           # control char ¹
ord(chr(185))      # 185
hex(185)           # '0xb9'

HTML

&sup1;   <!-- named entity -->
&#185;   <!-- 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.

Nearby codes