Transfer to ireport to solve the problem of Chinese garbled characters

The report generated by ireport5.6 for the first time displays Chinese garbled characters: Reason: The Asian language package "iTextAsian.jar," is missing. Solution: 1. Copy the Asian language package "iTextAsian.jar," to JasperSoft/iReport-5.6/ireport/libs in the iReport installation directory; 2. Add iTextAsian.jar to iReport's classpath, and select in iReport "Tools----"Options" menu, click to display the following interface, add the JAR package (iTextAsian.jar) to the Classpath. As shown



 

3. Set the relevant properties of each display object on the report. The description of each property setting is as follows:
    Font name: 宋体 (Chinese font)
    PDF font name: STSong-Light
    PDF Encoding: UniGB-UCS2-H(Chinese Siplified)
    PDF Embeded: √

As shown in the figure:



  

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326727422&siteId=291194637