Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Character code of unknown character-character, e.g. square or question mark romb

What's the character code of the symbol that means an unknown character?

If a character isn't included in a font, it's often displayed as a square, indicating that the symbol doesn't exist in that font.

What's the character code of that square symbol? Not the code of the symbol that doesn't exist, but the actual square symbol?

I'd like the character code in UTF-8.

like image 648
Filip Haglund Avatar asked Sep 12 '13 09:09

Filip Haglund


2 Answers

U+FFFD REPLACEMENT CHARACTER = 0xEF 0xBF 0xBD

like image 30
MSalters Avatar answered Nov 04 '22 02:11

MSalters


Unicode has two symbols for unknown characters:

  • □ (WHITE SQUARE, U+25A1) - Replaces a missing or unsupported Unicode character.
  • � (REPLACEMENT CHARACTER, U+FFFD) - Replaces an invalid or unrecognizable character. Indicates a Unicode error.

Sources

  • Quora - What symbol is the square box shown for non-representable Unicode characters?
  • FileFormat.Info - Unicode Character 'WHITE SQUARE' (U+25A1)
  • Wikipedia - Specials (Unicode block)
like image 149
Stevoisiak Avatar answered Nov 04 '22 03:11

Stevoisiak