Log in

View Full Version : Resolved Problems with cyrillic/CSS in Firefox (re-post)



robertsaunders
03-23-2009, 03:19 PM
I posted this question in the HTML section but (unusually) received no replies, so I thought I'd stick it in here too to see if anyone could help. I hope that is allowed.

I am having problems putting Russian scrip into a webpage.

I write all my sites using notepad. I thought I had resolved the problem by saving the files as UNICODE instead of ANSI, but although this seems to work fine for IE, I have just discovered that it doesn't work with Firefox. Although the Russian script still appears when viewed in Firefox, none of the CSS formatting is applied. I can get the CSS formatting back by saving the file as ANSI but then I lose the Russian script (it just goes to ???????? instead of по-русски).

This site in quesion is www.elenadearden.com

I realise that the charset is wrong but I've tried changing this offline and it doesn't seem to make any difference.

I would really appreciate any help that anyone could offer with this, as I am totally stuck. I only design sites as a hobby so my knowledge is limited.

Thanks.

Rob

Medyman
03-24-2009, 01:31 PM
You should set a character encoding for your HTML. It doesn't only matter how you save the text file, the browser has to be able to read it right. You can do that via the Content-Type meta tag.

More info: http://en.wikipedia.org/wiki/Character_encodings_in_HTML

robertsaunders
03-24-2009, 03:27 PM
Thanks for your reply. I have now managed to resolve the problem by saving the file as UTF-8 instead on unicode and changing the meta-tag to:

<meta http-equiv="content-type" content="text/html; charset=UTF-8">

Спасибо!

Роб