4 ms·
What's the fuss over UCS-2? Isn't a fair amount of data processing still done on Windows systems on the user end and in Java in the corporate space? Has either
by usr1106 6y ago
What's the fuss over UCS-2? Isn't a fair amount of data processing still done on Windows systems on the user end and in Java in the corporate space? Has either of them ever converted away from 16 bit characters?
(Sorry the naive but honest question. Haven't used Java since around 2005 (remember J2ME?) and Windows since 2010.)
- ygra 6y agoNeither Windows, nor .NET, nor Java have moved away from 16-bit code units (the latter two have made concessions for strings in other encodings, either to save space or to improve speed in scenarios where UTF-16 will never appear, like HTTP headers). It's unlikely they ever will; that's a hell of a backwards-compatibility break for very little gain.
- qz2 6y agoYeah also to note that strings in powershell are 16-bit chars.