Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Japanese text in uft-8 is frequently rendered with the Chinese version of the kanji due to han unification, not "representing their writing method exactly". Shift-JIS encoding comunicates that the text is in Japanese via the encoding facilitating the correct font to be selected.

And it indeed facilitates, as in practice it works better than encoding in utf-8 that lacks an in-band way to communicate that, and out-of-band often fails/is ignored/doesn't exist.



Utf-8 has language tags, in-band way to communicate a language


It "has" them but they're officially deprecated and generally unsupported.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: