2 ms·
The encoding scheme goes to 31 bits, but UTF-8 nowadays goes to ≈20 bits. https://en.wikipedia.org/wiki/UTF-8#Invalid_code_points https://en.wikipedia.org/wiki/
by Someone 6y ago
The encoding scheme goes to 31 bits, but UTF-8 nowadays goes to ≈20 bits. https://en.wikipedia.org/wiki/UTF-8#Invalid_code_points https://en.wikipedia.org/wiki/UTF-8#Invalid_code_points:
“Since RFC 3629 (November 2003), the high and low surrogate halves used by UTF-16 (U+D800 through U+DFFF) and code points not encodable by UTF-16 (those after U+10FFFF) are not legal Unicode values, and their UTF-8 encoding must be treated as an invalid byte sequence.”