DevKits

ASCII 173

Soft Hyphen (SHY)

Latin-1 Supplement

Latin-1 character.

All encodings at a glance

Decimal173
Hexadecimal0xAD
Octal0255
Binary10101101
HTML numeric entity­
HTML named entity­
URL encoding%AD
UTF-8 bytes0xC2 0xAD

Code snippets

JavaScript

String.fromCharCode(173); // "SHY"
173.toString(16); // "ad"

Python

chr(173)           # control char SHY
ord(chr(173))      # 173
hex(173)           # '0xad'

HTML

&shy;   <!-- named entity -->
&#173;   <!-- numeric entity -->

Unicode & UTF-8 note

In Unicode this is U+00AD. In UTF-8 it encodes to the byte sequence 0xC2 0xAD. In legacy Latin-1 (ISO-8859-1) it is a single byte 0xAD, which is why Latin-1 files often appear as mojibake when interpreted as UTF-8.

Nearby codes