Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
  • salvin francis
  • Frits Walraven
  • Piet Souris

i18N problem

Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 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
Switching from electric heat to a rocket mass heater reduces your carbon footprint as much as parking 7 cars. Tiny ad:
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic