converting UTF-8 to HTML

Erik Nørgaard norgaard at locolomo.org
Sat Apr 21 06:35:32 UTC 2012


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
> ü
>
> 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


More information about the freebsd-questions mailing list