httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dragon <dra...@crimson-dragon.com>
Subject Re: [users@httpd] How to change default Charset?
Date Mon, 19 May 2008 16:31:45 GMT
Jagbir Singh wrote:
>Hi,
>I'm on CentOS 5 and like to change default charset of 'ISO-8859-1' 
>to 'UTF-8' Apache 2.2, so I updated httpd.conf to have this line:
>AddDefaultCharset UTF-8
>Restarted Apache and open default page in Firefox, which reports 
>UTF-8 as expected but running any perl scripts and then checking 
>reports ISO-8859-1. Is there any other settings needs to be changed 
>to force all contents have charset UTF-8?
---------------- End original message. ---------------------

I believe that what you have done in Apache is all that you can do in Apache.

If I am not mistaken, Apache only adds a header to define the default 
character set if one is NOT provided in the generated content. It is 
entirely possible that your Perl code is sending a different header.

Dragon

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Venimus, Saltavimus, Bibimus (et naribus canium capti sumus)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message