Live data from Hacker News

UTF-n: Brainstorming alternate text encodings

jed.github.com

1–6 of 6 posts

Re: UTF-n: Brainstorming alternate text encodings

#2
It would be good to have demo text that plays to UTF-n's advantage, so I don't have to copy-paste from someplace like jp.wikipedia.org myself :)

It looks like it preserves some of UTF-8's stream synchronization properties, but does it have UTF-8's wonderful property of being recognizable by simple heuristics to great confidence even for tiny sequences?

Re: UTF-n: Brainstorming alternate text encodings

#4
Sure, UTF-8 sucks for Chinese and UTF-16 is bad at English, but in practice, high-codepoint languages are rarely mixed with low-codepoint ones. Notice that when sending an email many mail programs will select the most concise encoding that happens to encompass every character in your message and usually not UTF-8 or UTF-16.

Re: UTF-n: Brainstorming alternate text encodings

#5
post #4

Sure, UTF-8 sucks for Chinese and UTF-16 is bad at English, but in practice, high-codepoint languages are rarely mixed with low-codepoint ones. Notice that when sending an email many mail programs will select the most concise encoding that happens to encompass every character in your message and usually not UTF-8 or UTF-16.

Counterexample: High-codepoint text in HTML or XML 1.0 vocabularies.