Another solution would be to use native2ascii [1]. I tried something
like this:
native2ascii -encoding UTF-8 t1.properties > t2.properties
Properties properties = new Properties();
properties.load(new FileInputStream("t2.properties"));
assertEquals("Ššľť", properties.get("key"));
java.util.Properties#load assumes that property files are encoded in ISO
8859-1.
Regards,
Arvid
[1] http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/native2ascii.html
Harald Müller wrote:
Hi!
I'm having problems with east-european characters in resourcebundle.
Bad characters are (example):
Ššľť
I've tried to convert it into unicode but that does not seem to work for all
characters.
I have no problem to read from a xml-file correctly (of course).
So ... Is there a way to extend ResourceBundle, fill it up with parsed
values from the xml-file and finally use it in my jsf-page (with
<f:loadBundle/>)?
Or is there another way to "render" these characters correctly on my page?
Thanks for advice!
rgds
H