ASCII 189
Vulgar Fraction One Half (½)
Latin-1 Supplement
One-half fraction (½).
All encodings at a glance
| Decimal | 189 |
| Hexadecimal | 0xBD |
| Octal | 0275 |
| Binary | 10111101 |
| HTML numeric entity | ½ |
| HTML named entity | ½ |
| URL encoding | %BD |
| UTF-8 bytes | 0xC2 0xBD |
Code snippets
JavaScript
String.fromCharCode(189); // "½"
189.toString(16); // "bd"Python
chr(189) # control char ½
ord(chr(189)) # 189
hex(189) # '0xbd'HTML
½ <!-- named entity -->
½ <!-- 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.