Jasper v 5.0.0 reports - unicode parameter not sent correctly to request

I built a report using iReport. In one of the report fields, we enter the name in Farsi. If I run a basic query in a database (Oracle), it works, but when I run a report, it does not work. It appears that the unicode parameter is incorrectly sent to the request. (The title of my report is in Farsi, and it displays correctly)

Has anyone had this problem?

+4
source share
1 answer
  • In your Jasper "IReport" environment
    If you want to create a report in PDF format, for example,
    Better to choose (Preview โ†’ PDF Preview) from the ireport app
    NOT default value (Internal view)

  • Text Field Properties

In the text fields you need to assign some properties
1. Font Name : A font that supports your Farsi language
2. Pdf font name : a font that supports your Farsi language
3. Pdf Embeded : true
4. Pdf Encoding : depends on your language "Farsi" โ†’ "Identity-H (Unicode with horizontal recording)"

Note
If you DO NOT install a font that supports your Farsi language
It's that simple. Just get your favorite ".... ttf" font.
Then from ireport (Tools โ†’ Options โ†’ Fonts tab โ†’ Set Font button โ†’ ....)

+2
source

All Articles