2 ms·
If there are surrogate pairs, I thought that was more of UTF-16 rather than UCS-2. Wikipedia says UCS-2 cannot go outside the BMP range (which emojis are). >UC
by Thorrez 7y ago
If there are surrogate pairs, I thought that was more of UTF-16 rather than UCS-2. Wikipedia says UCS-2 cannot go outside the BMP range (which emojis are).
>UCS-2 differs from UTF-16 by being a constant length encoding[4] and only capable of encoding characters of BMP.
https://en.wikipedia.org/wiki/UTF-16 https://en.wikipedia.org/wiki/UTF-16
There does seem to be some disagreement on this topic though. I wonder if it could be described as WTF-16.
https://simonsapin.github.io/wtf-8/ https://simonsapin.github.io/wtf-8/