º

ASCII Code 186

Masculine ordinal indicator

About This Character

ASCII code 186 (0xBA) represents the Masculine ordinal indicator 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.

Character Encoding

Decimal 186
Octal 272
Hexadecimal 0xBA
Binary 10111010
HTML Code º
HTML Entity º
Unicode U+00BA
Unicode Name MASCULINE ORDINAL INDICATOR
URL Escape %BA
Quoted-Printable =BA
UTF-8 (Hex) C2 BA
Category Extended — Miscellaneous Extended

How to Type in Code

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

See Also

Copied!