Hi guys, i have installed centos 4.3 and i have a problem with Apache. All char like "°", "-", ecc. in web pages appears as "?". This is the variable in httpd.conf: "AddDefaultCharSet UTF-8"
I have also set: "AddDefaultCharSet ISO-8859-1" without any change.
Where is the problem? Thanks Luigi
2006/5/8, Luigi Palmiero adnusielog4@rmsud.esercito.difesa.it:
Hi guys, i have installed centos 4.3 and i have a problem with Apache. All char like "°", "-", ecc. in web pages appears as "?". This is the variable in httpd.conf: "AddDefaultCharSet UTF-8"
I have also set: "AddDefaultCharSet ISO-8859-1" without any change.
Where is the problem? Thanks
Remove "AddDefaultCharSet ISO-8859-1" - it is no needed - and just comment "AddDefaultCharSet UTF-8" - it disable forcing UTF8 in files Apache serve.
Character encoding in HTML files will work.
Regards -- _________________________________________________________________ D o m i n i k S k ł a d a n o w s k i
----- Original Message ----- From: "Dominik Składanowski" dskladanowski@gmail.com To: "CentOS mailing list" centos@centos.org Sent: Monday, May 08, 2006 9:45 AM Subject: Re: [CentOS] Special character with Apache in Centos 4.3
2006/5/8, Luigi Palmiero adnusielog4@rmsud.esercito.difesa.it:
Hi guys, i have installed centos 4.3 and i have a problem with Apache. All char like "°", "-", ecc. in web pages appears as "?". This is the variable in httpd.conf: "AddDefaultCharSet UTF-8"
I have also set: "AddDefaultCharSet ISO-8859-1" without any change.
Where is the problem? Thanks
Remove "AddDefaultCharSet ISO-8859-1" - it is no needed - and just comment "AddDefaultCharSet UTF-8" - it disable forcing UTF8 in files Apache serve.
Character encoding in HTML files will work.
Regards
D o m i n i k S k ł a d a n o w s k i
--------------------------------------------------------------------------------
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
No, sorry not work. Thanks Luigi
06-05-08, Luigi Palmiero adnusielog4@rmsud.esercito.difesa.it napisał(a):
No, sorry not work.
On my webserver (CentOS 4.3) I have made:
#AddDefaultCharset UTF-8 (commented line)
And it works as wrote before.
Regards.
P.S.: did you restarted httpd? -- _________________________________________________________________ D o m i n i k S k ł a d a n o w s k i VOLVO 740GL (B230E) rocznik 1991 Warszawa
----- Original Message ----- From: "Dominik Składanowski" dskladanowski@gmail.com To: "CentOS mailing list" centos@centos.org Sent: Monday, May 08, 2006 10:31 AM Subject: Re: [CentOS] Special character with Apache in Centos 4.3
06-05-08, Luigi Palmiero adnusielog4@rmsud.esercito.difesa.it napisał(a):
No, sorry not work.
On my webserver (CentOS 4.3) I have made:
#AddDefaultCharset UTF-8 (commented line)
And it works as wrote before.
Regards.
P.S.: did you restarted httpd?
D o m i n i k S k ł a d a n o w s k i VOLVO 740GL (B230E) rocznik 1991 Warszawa
--------------------------------------------------------------------------------
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Of course, i have restarted httpd. Thanks Luigi
Luigi Palmiero wrote:
All char like "°", "-", ecc. in web pages appears as "?". This is the variable in httpd.conf: "AddDefaultCharSet UTF-8"
I have also set: "AddDefaultCharSet ISO-8859-1" without any change.
Where is the problem?
Your webpages *do* have a content-type declaration in <HEAD></HEAD>?
Ralph
----- Original Message ----- Luigi Palmiero wrote:
All char like "°", "-", ecc. in web pages appears as "?". This is the variable in httpd.conf: "AddDefaultCharSet UTF-8"
I have also set: "AddDefaultCharSet ISO-8859-1" without any change.
Where is the problem?
Your webpages *do* have a content-type declaration in <HEAD></HEAD>?
Ralph
Luigi Palmiero wrote on Mon, 8 May 2006 09:36:08 +0200:
All char like "°", "-", ecc. in web pages appears as "?". This is the variable in httpd.conf: "AddDefaultCharSet UTF-8"
I have also set: "AddDefaultCharSet ISO-8859-1" without any change.
The CharSet the characters were written in differs from what is sent and displayed by the browser. Make them match and all is well. (That is: either change the CharSet the server sends or change the CharSet the web pages are written in.) You can check the character encoding of a page in your browser, usually at View/Encoding or so. BTW: this is not CentOS-specific.
Kai
Kai Schaetzl wrote:
Luigi Palmiero wrote on Mon, 8 May 2006 09:36:08 +0200:
All char like "°", "-", ecc. in web pages appears as "?". This is the variable in httpd.conf: "AddDefaultCharSet UTF-8"
I have also set: "AddDefaultCharSet ISO-8859-1" without any change.
The CharSet the characters were written in differs from what is sent and displayed by the browser. Make them match and all is well. (That is: either change the CharSet the server sends or change the CharSet the web pages are written in.) You can check the character encoding of a page in your browser, usually at View/Encoding or so. BTW: this is not CentOS-specific.
Kai
I'm betting your webpage editor is FrontPage. It defaults to western english char set. We had to set the server charset to even be able to read these dumb Microsoft chars as during the FTP process the chars were getting screwed up.
Try setting the charset in your site editor to something 'standard' and re-upload your pages.
Bill really does want to make this a winders world... all the way down to FP and its non-world-standard charsets.
Best, John Hinton
If you've got the perl-libwww-perl package installed, use the HEAD and GET scripts to help diagnose the problem.
First, figure out what character set your web server is advertising in the HTTP headers:
HEAD http://yourhost.it/ | grep charset
Then, make sure it jibes with your web page says:
GET http://yourhost.it/ | grep charset
Do the charset settings returned from those two commands match? If so, are they what you expect?
-- Paul Heinlein heinlein@madboa.com
John Hinton wrote on Mon, 08 May 2006 09:05:26 -0400:
It defaults to western english char set.
Which is perfectly okay since ISO-8859-1 *is* the default character set for HTML.
Kai
Kai Schaetzl wrote:
John Hinton wrote on Mon, 08 May 2006 09:05:26 -0400:
It defaults to western english char set.
Which is perfectly okay since ISO-8859-1 *is* the default character set for HTML.
Kai
My point is this. The default charset used in Frontpage cannot be read by the default charset in RedHat EL systems.
Some can.. but copywrite, middot... etc upload as jibberish.
John Hinton
John Hinton wrote on Mon, 08 May 2006 15:49:33 -0400:
My point is this.
No, your point were "dumb Microsoft chars" and phantasms about "Bill".
The default charset used in Frontpage cannot be read
by the default charset in RedHat EL systems.
You are confusing a few things. Doing pages in iso-8859-1 is very, very fine. However, if you install a webserver and tell it to serve iso-8859-1 pages as utf-8 this doesn't fit. This is not a fault on either side of the software. It's a configuration mistake. Believe me. If you are talking about moving pages from one system to the other and having problems with editing them. Yes, if the character set doesn't match, that is a problem. Again, this is not a software problem, but a configuration problem. Either edit on both systems in the one or the other character set. This has nothing to do with any phantasms about "Bill" or "dumb Microsoft chars".
Kai