News for hackers. Stuff that matters.
Re:How To Use UTF-8 Throughout Your Web Stack by guard-of-terra on Saturday August 20, 2011 @05:36AM (#2906263)
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.

Re:How To Use UTF-8 Throughout Your Web Stack by tlrobinson on Saturday August 20, 2011 @06:08AM (#2906298)
Won't all modern browsers include the encoding in the Content-Type header?

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

Re:How To Use UTF-8 Throughout Your Web Stack by guard-of-terra on Saturday August 20, 2011 @09:25AM (#2906581)
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.