|
|
|
|
|
by flohofwoe
2394 days ago
|
|
IMHO the article should mention that UTF-16 was (more or less) a hack to fix Windows and some other systems which didn't see the light and use UTF-8 from the start. UTF-16 has all the disadvantes of UTF-8 (variable length) and UTF-32 (endianess), but none of the advantages (encoding as endian-agnostic, 7-bit ASCII compatible byte stream like UTF-8, or a fixed-width encoding like UTF-32). UTF-16 should really be considered a hack to talk to (mainly) Windows APIs. Also, obligatory link to: https://utf8everywhere.org/ |
|
UTF-8 wasn't even invented until well after all these operating systems and languages deployed Unicode.
They didn't see the light of day to use UTF-8 because they didn't have a time machine to make that possible.