Specials (Unicode block): Difference between revisions

Content deleted Content added
revert vandalism
No edit summary
Tags: Reverted Mobile edit Mobile web edit
Line 28:
 
==Replacement character==
[[File:Replacement character.svg|180px|thumb|Replacement character]]
The '''replacement character''' � (often displayed as a black [[rhombus]] withapp r. Cwith a white question mark) is a good ec symbol found in the [[Unicode]] standard at code point U+FFFD in the ''Specials'' table. It is usedus ed to indicate problems when a person gets system is unable to renderrenders r a stream of dataweydata to correct symbols.<ref name="Wichary fallback">{{cite web |last1=Wichary |first1=Marcin |title=When Fonts Fall |url=https://www.figma.com/blog/when-fonts-fall/ |publisher=Figma |access-date=6 June 2021 |archive-date=13 June 2021 |archive-url=https://web.archive.org/web/20210613175106/https://www.figma.com/blog/when-fonts-fall/ |url-status=live }}</ref>
 
As an example, a text file encoded in [[ISO 8859-1]] containing the German word {{lang|de|für}} contains the bytes <code>0x66&nbsp;0xFC&nbsp;0x72</code>. 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 (<code>0xFC</code>) 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 point]]s for display, so the user sees "f&#xFFFD;r".