Hi all,
I am trying to use a messages.properties file with greek characters.
I am sure that the application picks up the right properties file which is Messages_gr.properties when i click the greek flag. This means that the action is fired correct and that the correct locale is used(id i am right).
The problem is that the web pages displays random characters, thus, not the right messages.
In order to avoid this I saved my properties files in utf8 then used the java nativetoascii to generate a new properties file and use this in my application. The result is something like :
write.review.body.good=\u039e\ufffd\u039e\u00b1\u039e\u00bb\u039f\ufffd
But when i rebuild and run the application with this updated properties file i again get random characters.
After that I put some greek text hard coded in a jsp page. After I rebuild and run the application the hard coded greek characters in the jsp page are displayed fine.
Does this mean that there is something wrong with my properties file?
Any help would be appreciated.
Kind Regards,
Giannis
I am trying to use a messages.properties file with greek characters.
I am sure that the application picks up the right properties file which is Messages_gr.properties when i click the greek flag. This means that the action is fired correct and that the correct locale is used(id i am right).
The problem is that the web pages displays random characters, thus, not the right messages.
In order to avoid this I saved my properties files in utf8 then used the java nativetoascii to generate a new properties file and use this in my application. The result is something like :
write.review.body.good=\u039e\ufffd\u039e\u00b1\u039e\u00bb\u039f\ufffd
But when i rebuild and run the application with this updated properties file i again get random characters.
After that I put some greek text hard coded in a jsp page. After I rebuild and run the application the hard coded greek characters in the jsp page are displayed fine.
Does this mean that there is something wrong with my properties file?
Any help would be appreciated.
Kind Regards,
Giannis