yinfeng6118 Posted July 26, 2018 Posted July 26, 2018 Hello everyone,We have a requirement, We need change some English words to Japanese words from export datas.Now,Almost all of the SQL queries are edited in the jrxml,that is to say,retrieve database data directly via sql in jrxml, not via the javabean,How should we do this?Maybe it can be achieved by expression, but because there are too many report templates, and English words may increase in the future, is there any other way?For example, Maintain these words through a properties file, jrxml file can read this file, Can we do this?Who can help me? Thank you!
hozawa Posted July 28, 2018 Posted July 28, 2018 Labels in a report can be changed to another language using resource bundles but if you'll trying to replace value retrieved from a database, I don't think that's supported.http://zetcode.com/articles/jasperresourcebundle/
yinfeng6118 Posted July 31, 2018 Author Posted July 31, 2018 Hozawa, Thank you for your help.But my Japanese is not shown correctly via exporting pdf.I think the reason is encoding.If I change properties content to unicode, for example: test = u308Fu304Bu308Bnothing is shown.If I change properties content to ISO-8859-1 , for example :test =わかる[ããã] is shown.And I tried to export html file ,it worked normally ,but pdf.How can i correct it?
yinfeng6118 Posted August 1, 2018 Author Posted August 1, 2018 It workes fine,My solution is font extention.
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