¹

ASCII Character: Superscript one

ASCII Code 185 · Unicode U+00B9 · Hex 0xB9

About the Superscript one Character

ASCII code 185 (0xB9) represents the Superscript one character in the extended ASCII table (128–255). It is part of the extended ASCII character set defined by the Windows-1252 (CP-1252) encoding. The extended ASCII range builds upon the original 128-character ASCII set, adding accented letters, currency symbols, typographic marks, and mathematical symbols. These characters are defined by the Windows-1252 (CP-1252) encoding, which is a superset of ISO 8859-1 (Latin-1). In modern web development, UTF-8 encoding is preferred, but understanding extended ASCII remains important for legacy system compatibility and character encoding troubleshooting.

Encoding Details

ASCII Code 185
Hexadecimal 0xB9
Octal 271
Binary 10111001
Unicode U+00B9
Unicode Name SUPERSCRIPT ONE
HTML Numeric ¹
HTML Entity ¹
URL Escape %B9
UTF-8 (Hex) C2 B9
Quoted-Printable =B9

Source Code Examples

JavaScript
// Character literal
let char = '¹';
// Using char code
let char2 = String.fromCharCode(185);
// Unicode escape
let char3 = '\u00B9';
Python
# Character literal
char = '¹'
# Using chr()
char = chr(185)
# Using ord() to get code
code = ord('¹')  # Returns 185
HTML
<!-- Direct character -->
¹
<!-- HTML entity (numeric) -->
&#185;
<!-- Hex entity -->
&#xB9;
C#
// Character literal
char c = '¹';
// Using cast
char c2 = (char)185;
// To get code from char
int code = (int)'¹';  // Returns 185

Navigate

Copied!