Thursday, September 10, 2009

fu**ing with java pl localization :(

That was the post on twitter 16 min. ago, without stars :). What happen?

I'm working on a Java web application which must have PL localization. The current task was to add the PL localization to application, so with fmt tag lib from jstl I start to implement it. When all static text was replaced with fmt tags I found that some chars are not rendered correctly. Today all morning I was searching why it happening, I was thinking that problem was JSTL, but not at finally I found that the problem is JVM it trying to convert sources and resource files from any encoding to unicode and somewhere something is not working as I expected :(. Ok here is the solution if you have resource files in ru, pl, etc.

In java exist utility native2ascii translate your files with that utility like:

# native2ascii dict_pl.properties dict_pl.properties and all will be ok.

Ok, I leave to take a launch, now I can do it quite :)

No comments:

Post a Comment