[#3419] - Unable to display Chinese characters in PDF generated by ireport

Category:
Bug report
Priority:
Immediate
Status:
New
Project: Severity:
Block
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:
0

We have developed a report which can display Asian characters like Chinese, Japanese and Korean using "STSong-Light" font. We developed this report using ireport 3.7.6. Now after upgrading the ireport to 5.2.0 version, the same reports are not working fine. They are loading empty pages. This has become a big concern as we are certifying Chinese locale for our product and we need this fixed ASAP.

We are using conditional styles like this
<style name="ChineseStyle" isDefault="true">
<conditionalStyle>
<conditionExpression><![CDATA[new Boolean($P{REPORT_LOCALE}.equals(Locale.CHINA))]]></conditionExpression>
<style pdfFontName="STSong-Light" pdfEncoding="UniGB-UCS2-H"/>
</conditionalStyle>
<conditionalStyle>
<conditionExpression><![CDATA[new Boolean($P{REPORT_LOCALE}.equals(Locale.KOREA))]]></conditionExpression>
<style pdfFontName="HYGoThic-Medium" pdfEncoding="UniKS-UCS2-H"/>
</conditionalStyle>
<conditionalStyle>
<conditionExpression><![CDATA[new Boolean($P{REPORT_LOCALE}.equals(Locale.JAPAN))]]></conditionExpression>
<style pdfFontName="HeiseiKakuGo-W5" pdfEncoding="UniJIS-UCS2-H"/>
</conditionalStyle>
</style>

Please contact us for any questions at gnatarajan@manh.com.

Also can you please share a sample jrxml which displays chinese charaters which are loaded from property file for ireport 5.2.0 version. That will be really helpful.

v5.2.0
gnatarajan's picture
Joined: Feb 24 2014 - 10:57pm
Last seen: 7 years 2 months ago

5 Comments:

#1
  • Assigned:nobody»

I'm able to display Japanese characters with 5.2.0 without any problem. Instead of creating a bug report, should create a Support Ticket.

#2
  • Assigned:» anonymous
#3

Hi hozawa, Thanks for the kind and quick reply. Can you please send your jrxml, the japanese resource bundle used and the generated PDF? It will be really appreciated for your quick resoponse, as we are stuck for 2 days on this.

#4

Hozawa, can you please help by providing all that are requested

#5
  • Assigned:nobody»

JRXML file is attached. The generated RTF file displays Korean characters whereas in PDF report, the Korean characters do not show up.

AttachmentSize
Binary Data hello_world.jrxml3.24 KB
Feedback