converting UTF-8 to HTML
Erik Nørgaard
norgaard at locolomo.org
Sat Apr 21 09:06:44 UTC 2012
On 21/04/2012 08:29, Erik Nørgaard wrote:
> Browsers understand UTF-8 perfectly, simply add <meta charset="utf-8" />
> to the html header.
Obviously I can't know what your project is, but you'll save yourself
heaps of problems sticking to UTF-8, in particular if you plan on
implementing any search functionality or have users submit content.
Enforce and stick to UTF-8.
When characters show up wrong in the users browser it's usually because
the browser is set to use a non-UTF-8 charset by default such as
windows-1252, the web server sends the charset=ascii in the http header
and there is no or incorrect meta tag to resolve the problem. Non UTF-8
charsets are a leftover from last millenia that we sometimes still choke
on .. sorry the rant ;)
Cheers, Erik
--
M: +34 666 334 818
T: +34 915 211 157
More information about the freebsd-questions
mailing list