UTF-8 characters issue in Ireports PDF

0

Hi,

I'm creating a table structure with  static column headers  and some values fields, the field values are getting populated from CSV datasource contating Thai characters. When i preview the PDF, the static Thai chars in the column headers appears fine, but which is getting rendered via datasource (i created a dataadapter from CSV) is not appearing and some junk chars are appearing.

I'm using IReports designer 5.6.0.

And i'm setting the font name as "Arial Unicode MS" with encoding "Identity-H". The static chars that are hard coded in the designer is appearing fine, but the fields values that are getting displayed from the CSV file is not rendered. Should i set some specific encoding for the dataadapter. 

Kindly let me know.

 

Regards

Vijay

vijaypr.chak's picture
Joined: Oct 15 2015 - 11:53pm
Last seen: 3 years 8 months ago

1 Answer:

0

It's probably the encoding with your csv character. If you have it set to UTF-8, try setting it to the encoding of your OS.

OR

Try setting the properties below in your report

net.sf.jasperreports.csv.encoding=utf-8

hozawa's picture
52452
Joined: Apr 24 2010 - 4:31pm
Last seen: 5 months 1 week ago
Feedback