Click to See Complete Forum and Search --> : Cyrillic Encoding


k_pilkington
10-19-2006, 07:45 AM
Hi, I currently have a website in which I am trying make display russian text if the language is set to russian else it will display english. Is this the right encoding to use?

<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

If that is correct do you know how I can enocode a PROPERTIES files as I have two properties files, one where english text comes from and one russian and i think i need to encode this aswell as the html and jsp pages.

Thanks for any help,

Mark

kiwibrit
10-19-2006, 10:28 AM
Interesting one. W3C's advice (http://www.w3.org/International/questions/qa-css-lang).

k_pilkington
10-19-2006, 11:08 AM
That doesn't really have anything to do with it as the style sheet doesn't matter. What I have on my jsp pages to get the correct text is for example:

(ht.get"123")

and I then have two PROPERTIES type files one with:

123=hello

and the other:

123=hello(in different language)

and depending on which language is being used it selects the correct words to make up the sentences.

I have correctly encoded the jsp pages as I can insert cyrillic text onto the jsp and it displays correctly but when from the properties file it does not.

Can I encode these files or do I need to encode the servlets aswell? although i dont think it really uses the servlets for this part?

Cheers,