Re:Emojis paved the way for UTF-8 everywhere
by ygra on Tuesday November 17, 2020 @02:46PM
(#25128686)
UCS-2 uses a fixed number of (16-bit) code units to represent a Unicode scalar value (code point). Of course, to represent a grapheme cluster, more than one code point may be needed, but that's true of Unicode in general.
[ Parent
| on HN ]
Re:Emojis paved the way for UTF-8 everywhere
by a1369209993 on Tuesday November 17, 2020 @03:39PM
(#25129503)
> that's true of Unicode in general.
Yes, that was rather my point: if you're using a Unicode-based character encoding, you're going to have variable-width characters regardless, so you might as well use UTF-8.
> UCS-2 uses a fixed number of (16-bit) code units to represent a Unicode scalar value (code point).
Sure, but that's a implementaion detail of the mapping from characters (at the application level) to bytes (at the physical(-ish) representation level).