Thanks for the tip Jason, it works! At first it did not, but then I have found the proper parameter for the native2ascii executable and it works fine:
I have the ApplicationResources_cs_native.properties in UTF-8 (including all the accented international characters) and then convert it using: native2ascii.exe -encoding UTF-8 ApplicationResources_cs_native.properties > ApplicationResources_cs.properties The -encoding parameter is the important one. Without it, the native2ascii didn't get the original encoding right and therefore the result was not correct, too. Thanks again. Radek > -----Original Message----- > From: Jason Lea [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 05, 2004 12:47 PM > To: Struts Users Mailing List > Subject: Re: Encoding of ApplicationResources file > > > Hi, > > You need to use native2ascii (program comes with java sdk and > is also an > ant method) to convert the UTF-8 (or other formats) into the java > property file format which use \uXXXX > > I normally refer people here also for some other tips: > http://www.anassina.com/struts/i18n/i18n.html > > But it doesn't seem to be working for me :( > > Main point is you need to request.setEncoding("UTF-8") on > every request > (well, ones that have form values being submitted). > Otherwise they will > be treated as normal ascii and be corrupted. Also pages need the > response encoding or page encoding set to UTF-8 too. > > > Václavík Radek wrote: > > >Hi, > > > >I am using resource files for internationalization of my web > application. > >However, I am experiencing problems with character encoding. > If I have some > >international characters (e.g. Czech) in the resource file, > these do not > >display correctly in the generated page. > > > >I have the resource file encoded in UTF-8, as well as all > the web pages. > > > >Have I missed any trick, that solves this problem? > > > >Thanks in advance. > > > >Radek > > > >_____________________________ > > > >Ing. Radek Václavík > >ICS Department - webmaster > > > >ZeNTIVA a.s. > >U Kabelovny 130, 102 37 Praha 10 > >Czech Republic > >tel. +420 267 243 296 > >_____________________________ > > > > > > > > > > > -- > Jason Lea > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >