¡

ASCII Character: Inverted exclamation mark

ASCII Code 161 · Unicode U+00A1 · Hex 0xA1

About the Inverted exclamation mark Character

ASCII code 161 (0xA1) represents the Inverted exclamation mark 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 161
Hexadecimal 0xA1
Octal 241
Binary 10100001
Unicode U+00A1
Unicode Name INVERTED EXCLAMATION MARK
HTML Numeric ¡
HTML Entity ¡
URL Escape %A1
UTF-8 (Hex) C2 A1
Quoted-Printable =A1

Source Code Examples

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

Navigate

Copied!