<meta charset="utf-8" />
in all your HTML documents that are in UTF-8. Note that this has to be in the first 1024 bytes of the document. Otherwise, the browser has to invoke the "encoding guesser"[1], which will sometimes guess wrong. (W3C: "The user agent may attempt to autodetect the character encoding from applying frequency analysis or other algorithms to the data stream.") The result will be occasional users seeing random pages in the wrong encoding, depending on browser, browser version, platform, and page content.I recently saw the front page of the New York Times misconverted because they didn't specify an encoding, and the only UTF-8 sequence near the beginning of the document was in
<link rel="apple-touch-icon-precomposed" sizes="144×144" ...
The "×" there is not the letter x, it's the Unicode multiplication symbol. This confused an encoding guesser. Don't go there.[1] http://www.w3.org/TR/html5/syntax.html#determining-the-chara...