Search code examples
unicodecharacter-encodingasciispecial-characters

What's the ASCII character code for '—'?


I am working on decoding text. I am trying to find the character code for the character, not to be mistaken for -, in ASCII. I have tried unsuccessfully. Does anybody know how to convert it?


Solution

  • Quotation from wiki (Em dash)

    When an actual em dash is unavailable—as in the ASCII character set—a double ("--") or triple hyphen-minus ("---") is used. In Unicode, the em dash is U+2014 (decimal 8212).

    Em dash character is not a part of ASCII character set.