httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Smithe" <gsmi...@compu-type.net>
Subject RE: [users@httpd] Odd character behavior
Date Wed, 30 Apr 2008 15:15:14 GMT
>-----Original Message-----
>From: Krist van Besien [mailto:krist.vanbesien@gmail.com] 
>Sent: Wednesday, April 09, 2008 4:09 AM
>To: users@httpd.apache.org
>Subject: Re: [users@httpd] Odd character behavior
>
>On Tue, Apr 8, 2008 at 8:29 PM, Gary Smithe <gsmithe@compu-type.net>
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".
>
>HTH,
>
>Krist
>
>-- 
>krist.vanbesien@gmail.com
>krist@vanbesien.org
>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: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
>


Krist,

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

I eventually did search using the magical combination and found this
thread:

http://ubuntuforums.org/showthread.php?t=31592&page=2

The fix offered there helped me.

With your favorite editor, edit this file:
/etc/apache2/conf.d/charset

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,

GS


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