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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20060508/833f083d/attachment-0002.html>
Dominik Składanowski
2006-May-08 07:45 UTC
[CentOS] Special character with Apache in Centos 4.3
2006/5/8, Luigi Palmiero <adnusielog4 at 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? > ThanksRemove "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
Ralph Angenendt
2006-May-08 09:52 UTC
[CentOS] Special character with Apache in Centos 4.3
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 -- Ralph Angenendt......ra at br-online.de | .."Text processing has made it possible Bayerischer Rundfunk...80300 M?nchen | ....to right-justify any idea, even one Programmbereich.Bayern 3, Jugend und | .which cannot be justified on any other Multimedia.........Tl:089.5900.16023 | ..........grounds." -- J. Finnegan, USC -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20060508/8fae2c67/attachment-0002.sig>
Luigi Palmiero
2006-May-08 10:16 UTC
[CentOS] Special character with Apache in Centos 4.3 - Solved !
----- 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 -- Ralph Angenendt......ra at br-online.de | .."Text processing has made it possible Bayerischer Rundfunk...80300 M?nchen | ....to right-justify any idea, even one Programmbereich.Bayern 3, Jugend und | .which cannot be justified on any other Multimedia.........Tl:089.5900.16023 | ..........grounds." -- J. Finnegan, USC Ok, it seems all right, with these instructions: - in "httpd.conf" i have commented "AddDefaultCharset UTF-8" - in HTML pages i have add these two lines in HEAD section: "<meta http-equiv="Content-Language" content="it">" "<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">" Thanks to all. Luigi
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 Sch?tzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com