Issues with printing thai characters in jasper pdf report

前端 未结 3 745
离开以前
离开以前 2021-01-24 20:00

I am facing issues with printing jasper pdf report which contains thai or chinese characters.Report is getting generated but in place of thai character it displays ???? symbols.

3条回答
  •  终归单人心
    2021-01-24 20:45

    First of all, you need to follow this guide. https://community.jaspersoft.com/wiki/displaying-east-asian-characters-report-pdf-output

    if you used maven, You need to add following dependencies to your pom.xml file

            
                com.test
                arialunicode
                1.0.0
            
            
                org.springframework
                spring-core
                3.2.2.RELEASE
            
            
                org.springframework
                spring-beans
                3.2.2.RELEASE
            
    

    Note: Arial Unicode library you need to install yours to your local maven repository.Please usee below command

    mvn install:install-file -DgroupId=com.test -DartifactId=arialunicode -Dpackaging=jar -Dversion=1.0.0 -Dfile=arialunicode-1.0.0.jar -DgeneratePom=true
    

    Now you need to build your project and It should be ok.

提交回复
热议问题