Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jasper Report PDF Encoding

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.

like image 529
cedric Avatar asked Dec 11 '09 06:12

cedric


People also ask

How do I change the number format in Jasper report?

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.

What language does jaspersoft use?

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.


1 Answers

You can also set "net.sf.jasperreports.default.pdf.encoding" in code like this:

JRProperties.setProperty("net.sf.jasperreports.default.pdf.encoding", "Cp1250");
like image 163
zigomir Avatar answered Oct 04 '22 10:10

zigomir