Index: [Article Count Order] [Thread]

Date:  Thu, 9 Mar 2006 15:00:10 -0600
From:  Chris Adams <cmadams (at mark) hiwaay.net>
Subject:  [coba-e:04270] Re: Language Encoding
To:  coba-e (at mark) bluequartz.org
Message-Id:  <20060309210010.GD721891 (at mark) hiwaay.net>
In-Reply-To:  <6.2.5.6.0.20060309140841.01dc8110 (at mark) pdcweb.net>
References:  <6.2.5.6.0.20060309140841.01dc8110 (at mark) pdcweb.net>
X-Mail-Count: 04270

Once upon a time, William J.A. Brillinger <billy (at mark) pdcweb.net> said:
> Change default character set for apache - FIXES SPECIAL CHARACTER PROBLEM
>         pico /etc/httpd/conf/httpd.conf
> 
>         FIND:   AddDefaultCharset UTF-8
>         CHANGE TO:      AddDefaultCharset iso-8859-1

In my experience, the Apache "AddDefaultCharset" configuration option
seems to override what you put in the <meta> tags.  You should not set a
default character set unless _everything_ uses it.

The Apache docs at:

http://httpd.apache.org/docs/2.0/mod/core.html#adddefaultcharset

include:

    This should override any charset specified in the body of the
    response via a META element, though the exact behavior is often
    dependent on the user's client configuration.

You should either set "AddDefaultCharset off" or just comment out the
option.

If you don't want to disable it system-wide, you can override it in a
.htaccess file (if you have "AllowOverride FileInfo") with the "off"
config.
-- 
Chris Adams <cmadams (at mark) hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.