4 ms·
Unicode code points can only take 4 bytes in UTF-8, this has been true ever since the planes were capped at U+10FFFF. Or did you mean UTF-8 encoded surrogate p
by syncsynchalt 12y ago
Unicode code points can only take 4 bytes in UTF-8, this has been true ever since the planes were capped at U+10FFFF.
Or did you mean UTF-8 encoded surrogate pairs?
- maxlybbert 12y agoThanks for the correction. I don't know where I originally got the "up top six bytes" number from, but I've been using it for a while. Apparently, it's out of date (looking at the original proposal, https://en.wikipedia.org/wiki/UTF-8#Description https://en.wikipedia.org/wiki/UTF-8#Description , some code points were expected to need 6 bytes, but as you say, that's no longer true).
- syncsynchalt 12y agoIt was true until 2003, so in this case reality has been retconned on you.