httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: [users@httpd] AddDefaultCharset
Date Fri, 26 Mar 2004 01:00:14 GMT

On Thu, 25 Mar 2004, Kalin Mintchev wrote:
> some problems with AddDefaultCharset
>
> i'm trying to use the AddDefaultCharset in apache 1.3 conf to set the
> charset to gb2312 - simple chinese...
>
> this is how i do it:
>
> <Directory /web/htdocs/ch/ >
>         AddDefaultCharset gb2312
> </Directory>
>
> it doesn't work.
>
> here are the to examples. same pages:
>
> from my server:
> http://danwen.com/ch/test.html

lynx -head -dump http://danwen.com/ch/test.html | more
HTTP/1.0 200 OK
Content-type: text/html
Server: Apache/1.3.27 (Unix) PHP/4.3.3 mod_ssl/2.8.14 OpenSSL/0.9.7a
Connection: Close
MIME-Version: 1.0
Date: Thu Mar 25 20:19:02 2004 EST
Last-Modified: Thu Mar 25 20:19:02 2004 EST
Expires: Thu Mar 25 20:19:02 2004 EST
Content-Length: 68725

Something very funky going on there.  That doesn't look like a traditional
apache response.  The ordering of the headers is very different.  Are you
generating the headers yourself with php or something else?  This could
explain the problem.

Incidentally, this page:
> http://cn.sports.yahoo.com/basketball/nba/

is not sending a charset in the http headers either.  The charset comes
from the html meta tag.

And yes, the two pages look pretty much the same from where I'm sitting.

Joshua.

---------------------------------------------------------------------
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