4 ms·
UTF-8 has good space behavior for English but as you get higher in the space you end up with 24 bits per character for languages that could expect 16 bits per c
by hinkley 7y ago
UTF-8 has good space behavior for English but as you get higher in the space you end up with 24 bits per character for languages that could expect 16 bits per character with another encoding.
That said, UTF-8 + gzip on the wire isn’t a bad solution.
- jeremysalwen 7y agoThe website addresses this issue: http://utf8everywhere.org/#asian http://utf8everywhere.org/#asian . The short answer is that most text is not purely high code points, but contains, e.g. HTML tags.
- 08-15 7y agoHow much of the data transmitted or stored on any given system is actually text, as opposed to images, audio, video, machine code, application specific random stuff? Of the little bit of text, how much is HTML, CSS, JSON, any programming language; all of which would be pretty much all ASCII? And if you can find a niche application where most of your data is CJK text, is it really so much that it fits on a USB pen drive if encoded in BIG-5 but not if encoded in UTF-8? My rough guesses at answers are 0.1%, 90%, and no. Besides, UTF-32 plus gzip isn't a bad solution, and completely ends all discussion about transfer formats... at the cost of requiring a compressor.