2 ms·
UTF-16 is a simple encoding. It should take a few dozens of LoC to convert to UTF-8. At least if you don’t need extreme performance with AVX, etc.
by vbezhenar 5y ago
UTF-16 is a simple encoding. It should take a few dozens of LoC to convert to UTF-8. At least if you don’t need extreme performance with AVX, etc.
- saati 5y ago> UTF-16 is a simple encoding This isn't true, for starters it's two encodings UTF-16LE and UTF-16BE.
- bjoli 5y agoMy experience is exactly like what you say. Until it isn't. UTF16 seems like such a neat idea until it meets reality. Mostly because of weird interactions of different libraries, languages and operating systems.