From owner-freebsd-questions@FreeBSD.ORG Sat Apr 21 09:06:44 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A97BF106566C for ; Sat, 21 Apr 2012 09:06:44 +0000 (UTC) (envelope-from norgaard@locolomo.org) Received: from mail.locolomo.org (97.pool85-48-194.static.orange.es [85.48.194.97]) by mx1.freebsd.org (Postfix) with ESMTP id 5ED3F8FC08 for ; Sat, 21 Apr 2012 09:06:44 +0000 (UTC) Received: from gamma.lan.locolomo.org (gamma.lan.locolomo.org [192.168.0.33]) by mail.locolomo.org (Postfix) with ESMTPSA id 4332B1C0841 for ; Sat, 21 Apr 2012 11:06:43 +0200 (CEST) Message-ID: <4F9278A2.1020301@locolomo.org> Date: Sat, 21 Apr 2012 11:06:42 +0200 From: =?ISO-8859-1?Q?Erik_N=F8rgaard?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20120421055823.GA6788@tinyCurrent> <4F9253D7.7010609@locolomo.org> In-Reply-To: <4F9253D7.7010609@locolomo.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: converting UTF-8 to HTML X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Apr 2012 09:06:44 -0000 On 21/04/2012 08:29, Erik Nørgaard wrote: > Browsers understand UTF-8 perfectly, simply add > 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