2 ms·
> I’m saying that as a quick measure of the actual length of a string, UTF-16 is much more predictable Meaning the software will deal much less well when it's
by masklinn 6y ago
> I’m saying that as a quick measure of the actual length of a string, UTF-16 is much more predictable
Meaning the software will deal much less well when it's wrong.
> and provides a nice intuitive estimation of how long text actually is
Not really due to combining codepoints, which make it not useful.
> as well as providing a fair encoding for most commonly used languages.
Which we know effectively doesn't matter: it's essentially only a gain for pure CJK text being stored at rest, because otherwise the waste on ASCII will more than compensate for the gain.