AddDefaultCharset considered harmful

Regarding the configuration problems with Apache, I
think the main culprit is the configuration file httpd.conf,
as shipped with the distribution. This contains:

 >>>>>>>>
#
# Specify a default charset for all pages sent out. This is
# always a good idea and opens the door for future internationalisation
# of your web site, should you ever want it. Specifying it as
# a default does little harm; as the standard dictates that a page
# is in iso-8859-1 (latin1) unless specified otherwise i.e. you
# are merely stating the obvious. There are also some security
# reasons in browsers, related to javascript and URL parsing
# which encourage you to always set a default char set.
#
AddDefaultCharset ISO-8859-1
 >>>>>>>

I have filed a bug with bugzilla, asking that this default setting
be removed or commented out, and the comment fixed, at
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23421.
You may want to vote for that bug.

I have commented on a related bug that I found, at
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14513.


Regards,    Martin. 

Received on Thursday, 25 September 2003 16:35:41 UTC