• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Message bundle encoding

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure of this is the right forum for this question, but here goes...
I've writen a JSF app and all seems well until it comes down to the multi-
language support. I have all of the on screen messages packaged into
properties files, and the English version is working a treat, but I'm having
problems with the Polish version...

I think it's to do with the file encoding on the properties file, but I'm
not sure. Basically whats happening is that when I save to file all looks
well, but when I open it to view it or run the Polish version of the app,
the Polish language specific characters are either missing or sqewed.
Initially the file was being saved as an ASCII file, but then I tried using
UTF-8 (which I understand should encompass the Polish character set) and
Unicode and none of these have fixed my problem...

Ok, here's what I'm running on:
OS: Win2K (though the target platform is Solaris)
JRE: 1.4.2_07 (Sun)
SE: Tomcat 4.1.31/WebSphere 5.0
JSF: 1.0

HELP!!!
 
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Kev D'Arcy:
I'm not sure of this is the right forum for this question, but here goes...
I've writen a JSF app and all seems well until it comes down to the multi-
language support. I have all of the on screen messages packaged into
properties files, and the English version is working a treat, but I'm having
problems with the Polish version...

I think it's to do with the file encoding on the properties file, but I'm
not sure. Basically whats happening is that when I save to file all looks
well, but when I open it to view it or run the Polish version of the app,
the Polish language specific characters are either missing or sqewed.
Initially the file was being saved as an ASCII file, but then I tried using
UTF-8 (which I understand should encompass the Polish character set) and
Unicode and none of these have fixed my problem...

Ok, here's what I'm running on:
OS: Win2K (though the target platform is Solaris)
JRE: 1.4.2_07 (Sun)
SE: Tomcat 4.1.31/WebSphere 5.0
JSF: 1.0

HELP!!!



I don't think issue here is JSF.
How are you ensuring UTF-8 encoding ? You would be required to do these two things :
i) At the jsp level, use the page directive for setting encoding to
UTF-8 [I am not sure of syntax but it is either "charset" or "encoding"]
ii) At the server side ensure you encode your request to UTF-8 again (your submitted request would surely be UTF-8 encoded but this would be needed)

P.S. I assume your database supports UTF-8 encoding.
[ March 31, 2005: Message edited by: Varun Khanna ]
 
It was the best of times. It was the worst of times. It was a tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic