3 ms·
UTF-8 is the preferred internal storage format for most applications. The reason is space efficiency.
by jstimpfle 7y ago
UTF-8 is the preferred internal storage format for most applications. The reason is space efficiency.
- jandrese 7y agoThat and the perceived simplicity of UTF16/32 is not actually the case so why bother if you have to do it the hard way anyway.
- cardiffspaceman 7y agoI certainly have leaned on UTF-8 but I wonder how efficient it is for the numerically-higher code points if the language is not heavily cp1252, like Korean.
- pstch 7y agoAn interesting - but not surprising - thing about this is that compression algorithms can be more efficient on wider representations of numerically-high code points (e.g, for some Korean corpus, using UTF-32 instead of UTF-8 improves LZMA compression by ~10%).
- zzo38computer 7y agoHow well does that corpus compress with LZMA if using a Korean specific character code (such as EUC-KR)? And what about other combinations, with other character codings and other compression algorithms?
- pstch 7y agoEUC-KR doesn't improve much with LZMA (2% over UTF-16), but is better with gzip-9 (10% over UTF-16). I haven't studied this extensively, just did a few tests when waiting for it to download.