httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gregor Mosheh <>
Subject [users@httpd] AddDefaultCharset not working?
Date Sun, 10 Jun 2007 12:34:12 GMT
Hi, all. I'm having a devil of a time getting my Apache to not output 
charset clauses in its Content-type headers -- it insists on outputting 
charset=iso-8859-1 although I'd like it to not do so.

(Background: we've recently taken on a customer who wants UTF-8 output 
for their virtualhost, so he can render Slovak characters.)

According to the docs, AddDefaultCharset should be able to either set or 
suppress the charset=iso-8859-1 clause, but it's not working...

httpd.conf disables the charset clause:
AddDefaultCharset Off

and the vhost enables and specifies the charset:
   DocumentRoot "/home/hikingsk"
   AddDefaultCharset UTF-8

And yet...

# wget --server-response
            => `index.html'
Connecting to||:80... connected.
HTTP request sent, awaiting response...
   HTTP/1.1 200 OK
   Date: Sun, 10 Jun 2007 12:23:27 GMT
   Server: Apache
   Expires: Thu, 19 Nov 1981 08:52:00 GMT
   Cache-Control: no-store, no-cache, must-revalidate, post-check=0, 
   Pragma: no-cache
   Set-Cookie: HOSTGIS=52d0e5393703ae7ad1dbc48c1f08f730; path=/
   Connection: close
   Content-Type: text/html; charset=iso-8859-1

Are my tired eyes missing something here?

Gregor Mosheh / Greg Allensworth
System Administrator, HostGIS cartographic development & hosting services

"Remember that no one cares if you can back up,
  only if you can restore." - AMANDA

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message