logoalt Hacker News

hypeateiyesterday at 8:09 PM1 replyview on HN

UTF-16 will be quite the mountain as Windows APIs and web specifications/engines default to it for historical reasons.


Replies

int_19htoday at 1:46 AM

It's not just Windows and JavaScript. On Apple platforms, NSString is UTF-16. On Linux, Qt uses UTF-16 strings. Looking at languages, we have Java (which is where JS got this bug from) and C# both enshrining it in their respective language specs.

So it's far more pervasive than people think, and will likely be in the picture for decades to come.

show 2 replies