httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Smithe" <>
Subject RE: [users@httpd] Odd character behavior
Date Wed, 30 Apr 2008 15:15:14 GMT
>-----Original Message-----
>From: Krist van Besien [] 
>Sent: Wednesday, April 09, 2008 4:09 AM
>Subject: Re: [users@httpd] Odd character behavior
>On Tue, Apr 8, 2008 at 8:29 PM, Gary Smithe <>
>> Best I can tell, it's an ANSI, extended ASCII, MS Windows type of
>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
>See <URL:> for more info.
>To unsubscribe, e-mail:
>   "   from the digest:
>For additional commands, e-mail:


Sorry for the long delay, but thanks for the help.

I eventually did search using the magical combination and found this

The fix offered there helped me.

With your favorite editor, edit this file:

And add this line:
AddDefaultCharset ISO-8859-1

Restart apache, and all is good.

This was on a default install of Debian Etch, so YMMV.

Thanks again,


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