Forum Moderators: phranque
im helping out someone with his website and thought i could do that in a sec.
wrong...
ive read a few pages and topics but what happens is this :
he wants to use 3 languages, english , french, and spanish.
its set to ISO-8859-1 but something goes wrong ...
when viewing in firefox and IE both are the same...
when i view french or spanish the text shows a lot of <?> in it..
i also tried utf 8 but nothing helps...
and weirdest thing is,if i change the language to french my browser changes to unicode utf 8 ,whitch then results in the messed up text.
and if i change it back to ISO-8859-1 then the french shows perfectly.
anyone can tell whats wrong?
In Firefox, ensure that the Auto-Detect option is set to "Off" (as it should be by default). How is the charset defined for the page? Is there a meta charset element in the head? As I understand it, if you select ISO-8859-1 in the browser then the text displays correctly? That would indicate that ISO-8859-1 is the correct encoding.
One problem you may be encountering is if the server is sending a default charset in a HTTP header. For example, the server could be setting a default of UTF-8 (meaning that the non-ASCII characters would display incorrectly on an ISO-8859-1-encoded page), and due to the way that HTML over HTTP is handled, you cannot override this with a meta charset within the document. You can check this by loading the page in Firefox and pressing Ctrl+I and see what is listed as the Encoding. To solve this problem, you need to remove the default charset via the server configuration (httpd.conf in Apache) or via an .htaccess file:
AddDefaultCharset Off [httpd.apache.org...]
the header part is pure basic contents like you see on any site
I'm not talking about the HTML output of the CMS, but the HTTP response headers sent by the server as available in the Page Info (Ctrl+I) in Firefox - if the charset is defined here as UTF-8 and the content is actually ISO-8859-1, then you will experience problems as you have described.
If you are the server administrator, check the httpd.conf for any default charset, or if it is a shared server, check with the hosting company.