>-----Original Message----- >From: Krist van Besien [mailto:krist.vanbesien@xxxxxxxxx] >Sent: Wednesday, April 09, 2008 4:09 AM >To: users@xxxxxxxxxxxxxxxx >Subject: Re: Odd character behavior > >On Tue, Apr 8, 2008 at 8:29 PM, Gary Smithe <gsmithe@xxxxxxxxxxxxxx> 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@xxxxxxxxx >krist@xxxxxxxxxxxxx >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@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx >For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx