I am trying to generate or export to PDF a jasper report but I can't display nihongo
or japanese
characters. How do I fix this.
The best way to format in jasper report is to use the pattern attribute on the textField tag. This will keep correct class (Number), when exporting to for example excel, excel can identify it as number and will also apply same pattern.
The default expression language is Java, but if you are not a programmer, we recommend that you design your projects with JavaScript or Groovy because those languages hide a lot of the Java complexity.
You can also set "net.sf.jasperreports.default.pdf.encoding" in code like this:
JRProperties.setProperty("net.sf.jasperreports.default.pdf.encoding", "Cp1250");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With