Posted by Benjamin Niemann on 11/17/29 11:29
Jafar As-Sadiq Calley wrote:
> Hi
>
> I'm doing a new website and I have a little problem with character
> encoding. I want to use UTF-8 otherwise some of the text has funny
> characters in it. Go to
> http://dhikr.homelinux.org/suhbah/dontbeasheikh.html
> and you will see what I mean.
> I have put in the <head>
>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
>
> Is that enough to make sure the user's browser detects and uses UTF-8?
No. The webserver sends 'text/html; charset=ISO-8859-1' as the Content-Type
in the HTTP headers, which overrides the declaration in your documents.
You'll have to configure your server to either send 'charset=utf-8' or omit
the charset parameter, in which case a user-agent should use the charset
declaration from the META element.
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/
Navigation:
[Reply to this message]
|