Hi Konrad,

It isn't even UTF, it's an older Java Properties file format:
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Properties.html

You need to use native2ascii with something like

native2ascii -encoding ISO-8859-2 input.properties output.properties

it turns the non-ascii characters into \u1234 format (where 1234 is the unicode value).

native2ascii.exe is in one of the Java SDK directories (I think), and there is also an Ant task so you can automate the process.

Konrad Billewicz wrote:

I'm unable to find an easy solution for my encoding problem with file MessageResources.properties declared in struts-config.xml as:

<message-resources parameter="MessageResources" />

File is encoded using ISO-8859-2 (Polish) while Struts interprets it as UTF. In documentation I'm not able find any "encoding" property for this tag.

I, of course, can convert file to UTF but, as usually, I wish to do what I want not what I can. ;-)

Best regards,
Konrad Billewicz



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Jason Lea



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to