httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krist van Besien" <>
Subject Re: [users@httpd] Odd character behavior
Date Wed, 09 Apr 2008 09:09:29 GMT
On Tue, Apr 8, 2008 at 8:29 PM, Gary Smithe <> wrote:

> Best I can tell, it's an ANSI, extended ASCII, MS Windows type of thing.

Probably indeed some difference between default character sets on your
windows and debian boxes. And probably the html files don't contain
any indication of used charsets themselves.

What you need to is find out the following things:
- What was the default charset on your IIS server.
- What is the default charset on your debian server.
- What content-type header does your apache sever currently send.

you can then try either:
- Changing the default charset of your apache to that you used on IIS,
using  AddDefaultCharset
- converting your files using iconv.

Basically apache doesn't care what charset is used to encode html
files. The linux filesystem doesn't either. It is however necessary
that the web browser knows what encoding is used for a particular file
it receives, so that it renders properly. What you thus need to do is
make sure that what is in the "content-type" header the apache server
sends out matches what is in the file.

If being able to edit the files with VI is necessary than you can
either convert your files to the standard char set of your debian box
(with iconv) , or alternatively modify your debian environemnt to
match your windows environment. You can do that by setting the
LC_CTYPE environment variable. To know what values you can use just
type in "locale -a".



Bremgarten b. Bern, Switzerland
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

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