Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Apr 2012 11:06:42 +0200
From:      =?ISO-8859-1?Q?Erik_N=F8rgaard?= <norgaard@locolomo.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: converting UTF-8 to HTML
Message-ID:  <4F9278A2.1020301@locolomo.org>
In-Reply-To: <4F9253D7.7010609@locolomo.org>
References:  <20120421055823.GA6788@tinyCurrent> <4F9253D7.7010609@locolomo.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F9278A2.1020301>