Unicode (UFT-8) in meta tag - Apache serves as iso-8859-1 , pse help

0 views
Skip to first unread message

Harry@home

unread,
Jan 19, 2004, 3:05:52 PM1/19/04
to

I'm located in Sweden.

That's why I suspect that my server - Apache thinks that it will be
best for me to get http documents served in iso-8859-1.

Because when I declare in my header:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

the browser , doesn't react. Despite it is set to encoding:
autoselect, the page is served as a iso 8859-1

When I manually switch browser to Unicode (UFT-8) the page is shown
correctly.

I understand that I have to locate and change the proper directive in
Apache config.

I went through Apache documentation but I couldn't figure it out.
To specialized stuff...

My installation:Apache/2.0.47 (Tawie Server Linux/Linux) PHP/4.3.2

Please point me to the relevant sector.

/Harry

Paul Smith

unread,
Jan 20, 2004, 9:31:42 PM1/20/04
to
"Harry@home" <m...@privacy.net> wrote in message
news:jkco001tgej8pteaq...@4ax.com...

> I went through Apache documentation but I couldn't figure it out.
> To specialized stuff...
>
> My installation:Apache/2.0.47 (Tawie Server Linux/Linux) PHP/4.3.2
>
> Please point me to the relevant sector.

Look in your httpd.conf, from memory I believe it's usually placed near
Addlanguage and Addcharset so look for those, then simply change
AddDefaultCharset to UTF-8 from whatever it's set on.

Restart Apache and you should be good to go.

--
Paul Smith,
Yeovil, UK.
http://www.smirnov.demon.co.uk/
http://www.doom3portal.com/ A Doom 3 fansite.

*Replace nospam with smirnov to reply by e-mail*

Mikki

unread,
Jan 21, 2004, 8:50:15 AM1/21/04
to
> Look in your httpd.conf, from memory I believe it's usually placed near
> Addlanguage and Addcharset so look for those, then simply change
> AddDefaultCharset to UTF-8 from whatever it's set on.
>

Even better, comment AddDefaultCharset line. This way browser will use the
charset you specified in HTML.

Harry@home

unread,
Jan 23, 2004, 12:52:47 PM1/23/04
to
Thank you very much for your help.

It works after I've hashed AddDefaultCharSet ISO-8859-1
Regards to both of you,
/H

Reply all
Reply to author
Forward
0 new messages