cinglez Posted February 15, 2011 Share Posted February 15, 2011 Hello to all.I have followed the JasperServer Localization Guide, but I have not being successful. I need to create and use a resource bundle for Brazilian portuguese (pt_BR).- I have created te .properties files- I have included the bundle on applicationContext-security.xml- It works IF there is no special characters. I have already changed the applicationContext.xml file:<constructor-arg value="ISO-8859-1"/> But special characters are still not displayed correctly. Any ideas? I have lost a lot of time on this...Thanks in advance. Link to comment Share on other sites More sharing options...
mdahlman Posted February 17, 2011 Share Posted February 17, 2011 Search on Java bundles. Java specifies that only ascii characters may be used in resource bundles. (Well, that's not quite true. But ISO-8859-1 is quite close to ascii.) Non-ascii characters must be expressed as Unicode escape sequences. Many tools, like Jaspersoft's iReport, allow a developer to view and edit the Unicode characters while saving the underlying file with correctly escaped values. Alternatively, Java's native2ascii utility can be used to convert files. Refer to more details here:http://java.sun.com/javase/technologies/core/basic/intl/faq.jsp Regards,Matt Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now