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

0 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Harry@home

ungelesen,
19.01.2004, 15:05:5219.01.04
an

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

ungelesen,
20.01.2004, 21:31:4220.01.04
an
"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

ungelesen,
21.01.2004, 08:50:1521.01.04
an
> 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

ungelesen,
23.01.2004, 12:52:4723.01.04
an
Thank you very much for your help.

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

Allen antworten
Dem Autor antworten
Weiterleiten
0 neue Nachrichten