Hi list, I have 2 Centos 4 servers running the Horde system, apparently identical in configuration, but they are behaving differently... On one, when emails containing a Pound Sign (?) are displayed it shows as ?? (not sure if this will come through right, but it's a capital A with a 'hat' accent over it followed by the pound sign). On the other, the Pound sign displays correctly. I have copied the httpd.conf files over between servers and this has no effect. Looking at the page source both are en-gb and UTF8. It looks like the problem is not with Apache as the config files are identical. Both servers are running the same version of Apache, and for that matter the same version of everything else, and all updates are applied. Would anyone have any ideas where to start looking to track down this discrepancy? Thanks! Andy.
centos-bounces at centos.org <> scribbled on Friday, October 20, 2006 7:57 AM:> Hi list, > > I have 2 Centos 4 servers running the Horde system, > apparently identical in configuration, but they are behaving > differently... > > On one, when emails containing a Pound Sign (?) are displayed > it shows as ?? (not sure if this will come through right, but > it's a capital A with a 'hat' accent over it followed by the > pound sign). > > On the other, the Pound sign displays correctly. > > I have copied the httpd.conf files over between servers and > this has no effect. Looking at the page source both are en-gb > and UTF8. It looks like the problem is not with Apache as the > config files are identical. > > Both servers are running the same version of Apache, and for > that matter the same version of everything else, and all > updates are applied. > > Would anyone have any ideas where to start looking to track > down this discrepancy? > > Thanks! > Andy.Try changing AddDefaultCharset UTF-8 to AddDefaultCharset iso-8859-1 in /etc/httpd/conf/httpd.conf This got rid of a bunch odd characters in some of my webpages. Don't forget to restart httpd after making the change. Mike
On Fri, 20 Oct 2006, Andy Wright wrote:> I have 2 Centos 4 servers running the Horde system, apparently > identical in configuration, but they are behaving differently... > > On one, when emails containing a Pound Sign () are displayed it > shows as ?? (not sure if this will come through right, but it's a > capital A with a 'hat' accent over it followed by the pound sign). > > On the other, the Pound sign displays correctly. > > I have copied the httpd.conf files over between servers and this has > no effect. Looking at the page source both are en-gb and UTF8. It > looks like the problem is not with Apache as the config files are > identical. > > Both servers are running the same version of Apache, and for that > matter the same version of everything else, and all updates are > applied. > > Would anyone have any ideas where to start looking to track down > this discrepancy?If you have the (oddly named) perl-libwww-perl package installed, use /usr/bin/HEAD to compare the HTTP Content-Type headers: HEAD $url_1 | grep ^Content-Type HEAD $url_2 | grep ^Content-Type As others have indicated, you'll probably notice that the charset value differs. I think what I'd do is to start at top of your URL tree (typically "/") on each server and work my way down to the e-mail in question, comparing charsets at each stop down the tree. If they start the same and diverge somewhere down the line, then that's the Directory or Location to examine. -- Paul Heinlein <> heinlein at madboa.com <> www.madboa.com
On Fri, 20 Oct 2006, Andy Wright wrote:> I have 2 Centos 4 servers running the Horde system, apparently > identical in configuration, but they are behaving differently... > > On one, when emails containing a Pound Sign () are displayed it > shows as ?? (not sure if this will come through right, but it's a > capital A with a 'hat' accent over it followed by the pound sign). > > On the other, the Pound sign displays correctly. > > I have copied the httpd.conf files over between servers and this has > no effect. Looking at the page source both are en-gb and UTF8. It > looks like the problem is not with Apache as the config files are > identical. > > Both servers are running the same version of Apache, and for that > matter the same version of everything else, and all updates are > applied. > > Would anyone have any ideas where to start looking to track down > this discrepancy?If you have the (oddly named) perl-libwww-perl package installed, use /usr/bin/HEAD to compare the HTTP Content-Type headers: HEAD $url_1 | grep ^Content-Type HEAD $url_2 | grep ^Content-Type As others have indicated, you'll probably notice that the charset value differs. I think what I'd do is to start at top of your URL tree (typically "/") on each server and work my way down to the e-mail in question, comparing charsets at each stop down the tree. If they start the same and diverge somewhere down the line, then that's the Directory or Location to examine. -- Paul Heinlein <> heinlein at madboa.com <> www.madboa.com
Oh dear, I feel I should hang my head in shame ! I blame it all on lack of coffee... Many thanks to all that took the trouble to reply to what turned out to be my own self-inflicted problem.... It turns out that I had upgraded one of the servers to PHP5 to do some testing and had left it that way rather than reverting to the stock Centos PHP4. That, coupled with a rather outdated install of Horde was causing the problem. Back on PHP4 now and all is ok. Thanks again to all, Andy.
Bisbal, Prentice
2006-Oct-20 16:58 UTC
[CentOS] RE: OT: Problems with Pound Signs and Apache
Are you sure ALL the files are 100% the same, including executables and libraries? I would do an md5sum of EVERY file that might be even remotely related to the behavior of Apache, Horde and anything else and then compare the MD5sums of all the files on the two different systems. If that doesn't turn up anything, then do rpm -qa and make sure all the packages are at the same version. The problem can still be in a library used by Horde or apache that's further down the stack (we all know what problems changing libc can cause, don't we? ) If THAT doesn't turn up anything, do rpm -Va to verify all the packages on the two systems. -- Prentice -----Original Message----- From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Andy Wright Sent: Friday, October 20, 2006 9:44 AM To: CentOS mailing list Subject: Re: [CentOS] RE: OT: Problems with Pound Signs and Apache Rex Dieter wrote:> We had similar problems, and our best solution was to remove the > "AddDefaultCharset" config option altogether. This allows individual > pages to specify their own encoding using meta tags: > <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> > and browsers to properly auto detect charsets on pages that fail to > explicity set them. > > -- Rex > http://lists.centos.org/mailman/listinfo/centos >again no luck unfortunately. The strange thing is that both Apaches are configured the same so I would expect the same problem with both. This not being the case, I'm thinking the problem is not with Apache but with Horde or elsewhere. However Horde was copied from one server to another (it's actually the original install that's giving the problem so that rules out an error when copying across). Thanks, Andy. _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos The contents of this communication, including any attachments, may be confidential, privileged or otherwise protected from disclosure. They are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please do not read, copy, use or disclose the contents of this communication. Please notify the sender immediately and delete the communication in its entirety.