scott wrote:
I figure this is an apache issue, but I dont' know where to look. Since moving my website from an older Redhat installation to my new Centos 4 server (all updates installed), all my web pages display a "?" anywhere I have a non-breaking space. If I do a view source in my browser I see the " " character, but when looking at it on my server via ssh, I see a vertical bar, similar, but not a pipe. And when looking at the source on a different browser I see a ASCII 160 character. But on all browsers, I'm seeing a ? on the display, instead of the non-breaking space.
Anyone know what I need to configure/correct/change in Apache to correct this?
We ran into this, too. Look in /etc/httpd/conf/httpd.conf and find the line that reads:
AddDefaultCharset UTF-8
Comment it out and add a line just below it that reads:
AddDefaultCharset iso-8859-1
Then restart or reload Apache. The problem is that the default configuration sets the default character set for all pages to UTF-8 instead of the 'real' default of iso-8859-1, AKA latin1. There's a nice little block of comments just above it that explains what it is all about.
Hope that helps!