6 ms·
> The idea that UTF-8 and UTF-16 are equivalent in practice is a complete fantasy, Except that most obscure of details that they represent the same characters.
by asveikau 13y ago
> The idea that UTF-8 and UTF-16 are equivalent in practice is a complete fantasy,
Except that most obscure of details that they represent the same characters.
> Ubuntu, Debian, and Fedora all default to UTF-8, and have for several years now. You're going to have to name names,
In the room where I'm sitting now I have Debian, OpenBSD and Arch systems. All of these defaulted to Latin-1 when I installed them, in the current decade.
> I can write Java code without ever thinking about UTF-16
Patently false. A char in java is 16 bits. String.length() and String.charAt() use utf-16 units, meaning surrogate pairs are double-counted.
> As for your ad hominem arguments about "attitude" and "maturity", I could do without them, thanks.
I am sorry, sometimes I am blunt and overstated about these characterizations, but it really did seem like the shoe fits. You seem to have an impulsive defense of UTF-8 and an inability to see that there might be merits or tradeoffs in an alternative. Throughout all of this, I am not saying that UTF-8 is a bad encoding, I am just saying it's goofy to "attack" UTF-16 for being different.