­

ASCII Character: Soft hyphen

ASCII Code 173 · Unicode U+00AD · Hex 0xAD

About the Soft hyphen Character

ASCII code 173 (0xAD) represents the Soft hyphen 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 173
Hexadecimal 0xAD
Octal 255
Binary 10101101
Unicode U+00AD
Unicode Name SOFT HYPHEN
HTML Numeric ­
HTML Entity ­
URL Escape %AD
UTF-8 (Hex) C2 AD
Quoted-Printable =AD

Source Code Examples

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

Navigate

Copied!