Specials (Unicode block)
Specials is a short Unicode block of characters allocated at the very end of the Basic Multilingual Plane, at U+FFF0-FFFF, containing these code points:
- , marks start of annotated text
- , marks start of annotating character
- , marks end of annotation block
- , placeholder in the text for another unspecified object, for example in a compound document.
- used to replace an unknown, unrecognised, or unrepresentable character
- not a character.
- not a character.
Unicode's character can be inserted at the beginning of a Unicode text as a byte order mark to signal its endianness: a program reading a text encoded in for example UTF-16 and encountering would then know that it should switch the byte order for all the following characters.
Its block name in Unicode 1.0 was Special.
Replacement character
The replacement character � is a symbol found in the Unicode standard at code point U+FFFD in the Specials table. It is used to indicate problems when a system is unable to render a stream of data to correct symbols.As an example, a text file encoded in ISO 8859-1 containing the German word für contains the bytes
0x66 0xFC 0x72. If this file is opened with a text editor that assumes the input is UTF-8, the first and third bytes are valid UTF-8 encodings of ASCII, but the second byte is not valid in UTF-8. The text editor could replace this byte with the replacement character to produce a valid string of Unicode code points for display, so the user sees "f�r".A poorly implemented text editor might write out the replacement character when the user saves the file; the data in the file will then become
0x66 0xEF 0xBF 0xBD 0x72. If the file is re-opened using ISO 8859-1, it will display "f�r". Since the replacement is the same for all errors it is impossible to recover the original character. At one time the replacement character was often used when there was no glyph available in a font for that character, as in font substitution. However, most modern text rendering systems instead use a font's character, which in most cases is an empty box, or "?" or "X" in a box, sometimes called a 'tofu'. There is no Unicode code point for this symbol.
Thus the replacement character is now only seen for encoding errors. Some software programs translate invalid UTF-8 bytes to matching characters in Windows-1252, so that the replacement character is never seen.