Re:Emojis paved the way for UTF-8 everywhere
by ChrisSD on Tuesday November 17, 2020 @09:05PM
(#25132355)
It's invalid according to the spec. They are permanently reserved code points for use in UTF-16.
> The definition of UTF-8 prohibits encoding character numbers between U+D800 and U+DFFF, which are reserved for use with the UTF-16 encoding form (as surrogate pairs) and do not directly represent characters.
They could be replaced by the replacement character to produce a valid string.
> The definition of UTF-8 prohibits encoding character numbers between U+D800 and U+DFFF, which are reserved for use with the UTF-16 encoding form (as surrogate pairs) and do not directly represent characters.
They could be replaced by the replacement character to produce a valid string.