logoalt Hacker News

jcranmerlast Tuesday at 4:00 PM2 repliesview on HN

If you're going to count the surrogate pairs as not-a-Unicode-codepoint, you should also count the other noncharacters: the last two codepoints on each of the 17 planes and the range U+FDD0-U+FDEF.

The expansion of Unicode beyond the BMP was designed to facilitate an upgrade compatibility path from UCS-2 systems, but it is extremely incorrect to somehow equate Unicode with UTF-16.


Replies

kbolinolast Tuesday at 4:42 PM

FWIW there is an official term for "code points excluding surrogates", it is "Unicode scalar value".

jeberlelast Tuesday at 8:34 PM

OK, I'm lost here. Why is there a 1:1 correspondence between the two?