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

Then you will also personally produce programs which would be broken for 5/6ths of the world population who happen to use letters outside latin1.

There's no way to avoid it unless you wrap it up and add some explicit checks and guesses.



Won't all modern browsers include the encoding in the Content-Type header?

They should. If so there's no need to guess.


It's not just browsers. Browsers are pretty sane when it comes to charsets, because they had the time to make it right and the pressure to do so. (It wasn't like that in times of NN4/IE4, which would interpret your text as whatever they want and won't even let you override)

Facing to something less agamant (like dreaded id3 tags), no such luck.




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

Search: