Hi, I have a problem when I try to internationalize my web application.
I wanted that user choose at begin either English or Serbian language.
However it is site done in Serbian language, and to perform such my
JSP's are encoded in UTF-8 format, in order to suport letter like -
š đ ž ć č.
I have add this header on each page :
Everything works just fine. JSP iz written in Serbian, and the letters are rendered just as they should be. But when I try to i18N the problems rise.
However, on my very first page I add that user may choose English or Serbian language. When they pick appropriate radio button I set preferable language in the session scope, using
fmt tag library :
Here problem occurs.The resource bundle
myLanguage_sr.properties do not allow to me to write special letters in ANSII format of file. So if I wrote that special Serbian letter, the have been sort of 'escaped', and instead of
š ,
s is written, and rendered on my page. Ok. I said, and save my resource bundle as a UTF-8 dokument. I try to access it again, and now on my page, at place where that special letters should be, stay (for example) instead of
Š stays
Å¡. And that is for each special letter!
So, what is a problem (why is not rendered just as it should be)? I am trying entire day to figure out, but I didn't success.
So does anyone knows the solution?
Thanks in advance