[jboss-user] [JBoss Seam] - Re: Non english characters in messages.properties

jazir1979 do-not-reply at jboss.com
Sun Jan 6 17:43:35 EST 2008


"pete.muir at jboss.org" wrote : I'm not very good at i8ln, but shouldn't messages.properties be UTF-8 encoded as well in the situation?

No, in fact you need to escape your UTF-8 characters in properties files, for example:


  | help=\u5E2E\u52A9
  | 

I do this automatically in my ANT build as follows:

  | <native2ascii encoding="UTF-8" src="${src.dir}" dest="${classes.dir}" includes="messages*.properties"/>
  | 

hope it helps,
Daniel.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117410#4117410

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117410



More information about the jboss-user mailing list