Jump to content
Changes to the Jaspersoft community edition download ×

Unicode issue when creating PDF report using JasperReports via Java code

Go to solution Solved by tural.muradbeyli,

Recommended Posts


I develop Spring based Web application which uses JasperReports Library 5.0.0 to create reports. First I had Unicode characters issue when I made design of report using iReport 4.5.1. I found this question here and solution was using font extensions. I did everything as described here ("Create a report and specify fonts"). I installed "Tahoma" font to iReport, checked "Emded this font to PDF document" and selected "Identity-H (Unicode with horizontal writing)" as PDF encoding. It solved my issue when I executed and saved report as PDF using iReport. But when I used "jasper" file compiled by iReport in my Java code, I again got the issue related with Unicode characters. Generated report doesn't contain some of language specific characters.

Please help me to solve this issue.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution


I found solution here.

  • Just open the options dialog of iReports again.
  • Select the iReport section (if not already selected).
  • Click on the fonts tab.
  • Select the previously installed font and click on the button "Export as extension".
  • Chose a folder and filename ending with .jar

Now you have a ready to use font jar which can be used with JasperReports. Just add it to the classpath of your application.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...