Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Apr 2012 08:29:43 +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:  <4F9253D7.7010609@locolomo.org>
In-Reply-To: <20120421055823.GA6788@tinyCurrent>
References:  <20120421055823.GA6788@tinyCurrent>

next in thread | previous in thread | raw e-mail | index | archive | help
On 21/04/2012 07:58, Matthias Apitz wrote:

> Is there something in the port to convert UTF-8 text to HTML encondings,
> like:
>
> $ echo ü | iconv -f utf-8 -t html
> &uuml;
>
> of the encondings in hex based on the codepoint?

AFAIK it's not possible.

Browsers understand UTF-8 perfectly, simply add <meta charset="utf-8" /> 
to the html header.

Problems with character sets and maintaining a web site usually occur 
when you mix character sets due to improper editor setup.

BR, 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?4F9253D7.7010609>