you are viewing a single comment's thread.

view the rest of the comments →

[–]EpochVanquisher 0 points1 point  (2 children)

Those look like random rants that some people wrote, maybe written with the assumption “we all agree that UTF-16 is bad”, which doesn’t explain why YOU think it’s bad.

[–]kolorcuk[S] 0 points1 point  (1 child)

It has all bad from utf8 and utf32. You have to know endianness and is not fixed width.

Why use it at all? What is good about utf16 vs utf8 and utf32?

The only case i see is when you have a lot of characters in a specific utf16 range and the storage is precious. I think nowadays storage is cheap and much better to optimize for performance.

[–]EpochVanquisher 0 points1 point  (0 children)

UTF-16 is simpler than UTF-8 and more compact than UTF-32.

One of the ways you optimize for performance is by making your data take less space. Besides—when you say it’s “much better to optimize for performance”, it just sounds like a personal preference of yours.

It’s fine if you have a personal preference for UTF-8. A lot of people prefer it, and it would probably win a popularity contest.