Apache2 and Encoding?
Hello!
I have been running my old web server (with apache 1.3.x) for years, but now
it is time to build a new box.
But, I ran into a problem:
I tried moving my wifes page over, and I get encoding problems. Below is a
copy of the header.
<head>
<meta http-equiv="Content-Language" content="sv">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Min Sida</title>
</head>
But, when I serve this page with my old web server, It works. With the new
it does not.
I used a tool I found (
http://www.thinkhost.com/services/generators/headers-check.shtml ) to see
what happened.
Old server:
HTTP/1.1 200 OK Date: Sun, 01 Oct 2006 07:32:03 GMT Server: Apache/1.3.34
(Debian) PHP/4.4.0-4 mod_fastcgi/2.2.10 mod_ssl/2.8.25 OpenSSL/0.9.8a
mod_perl/1.29 Last-Modified: Sat, 25 Mar 2006 05:53:29 GMT ETag:
"8b8e-ef8-4424dad9" Accept-Ranges: bytes Content-Length: 3832
Connection: close Content-Type: text/html; charset=iso-8859-1
New Server:
HTTP/1.0 200 OK Date: Sun, 01 Oct 2006 08:00:33 GMT Server: Apache/2.0.55
(Debian) PHP/5.1.6-1 mod_ssl/2.0.55 OpenSSL/0.9.8c Last-Modified: Sat, 30
Sep 2006 22:14:20 GMT ETag: "57aac-ef8-41eb318268700"
Accept-Ranges: bytes Content-Length: 3832 Connection: close Content-Type:
text/html; charset=UTF-8
Now, I suppose I could use AddDefaultCharset, but that would most likely
break a lot of other pages.
How can I make sense out of this?
Reply to: