Re:Unicode is harder than you think
by deadbeeves on Tuesday July 25, 2023 @06:14PM
(#36870386)
But UTF-8 is just a way to encode a number as a variable-length string of octets. Why would you be unable to encode, say, a terminating U+D800 as a string of three bytes at the end of a UTF-8 stream?
[ Parent
| on HN ]
Because that's how UTF-8 is defined[1]. WTF-8 lifts that restriction.
Re:Unicode is harder than you think
by deadbeeves on Tuesday July 25, 2023 @06:41PM
(#36870708)
It doesn't sound very annoying, then. You use the exact same encoding scheme, but skip a verification step. Actually it sounds more convenient.