Forum Moderators: phranque
I have an apache version 2.0.49 running on a Linux/SUSE box.
I am doing a translation of a Website into Russian.(don't speak it, just copying and pasting). The pages are supposed to be displayed in a Cyrillic font.
Creating the pages and calling them locally works fine. The Pages are encoded with: <meta HTTP-EQUIV="Content-Type" content="text/html; charset=KOI8-R">
When I put them online though, the characters are all garbled, even I can tell that they aren't Cyrillic.
If I rename the pages to end on html.ru.koi8-r and call these pages directly as in: [ru.example.com...] they are displayed correctly. The same call to index.htm does not.
Obviously Apache is capable of sending the correct encoding, but I seem to have to set something for it to do so with 'normal' pages.
Can anybody help?
Thanks
Fredrick
[edited by: jdMorgan at 1:27 pm (utc) on Aug. 31, 2005]
[edit reason] Obscured specifics per TOS. [/edit]
Your problem sounds like a server configuration problem. If the server is automatically setting a default charset in a HTTP header before the page is served, that charset will override the charset specified in the meta tag.
Try adding the following to an .htaccess file in your document root:
AddDefaultCharset Off Does that help? If you have a dedicated server, you can also disable the default charset in httpd.conf.
Reference: [httpd.apache.org...]
Other potential problems can occur if the meta charset tag appears after any encoded content - you should place it before the
<title></title> for example.