DevKits

ASCII 189

Vulgar Fraction One Half (½)

Latin-1 Supplement

One-half fraction (½).

All encodings at a glance

Decimal189
Hexadecimal0xBD
Octal0275
Binary10111101
HTML numeric entity½
HTML named entity½
URL encoding%BD
UTF-8 bytes0xC2 0xBD

Code snippets

JavaScript

String.fromCharCode(189); // "½"
189.toString(16); // "bd"

Python

chr(189)           # control char ½
ord(chr(189))      # 189
hex(189)           # '0xbd'

HTML

&frac12;   <!-- named entity -->
&#189;   <!-- numeric entity -->

Unicode & UTF-8 note

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

Nearby codes