在jasper pdf报告中打印泰国字符的问题 [英] Issues with printing thai characters in jasper pdf report
本文介绍了在jasper pdf报告中打印泰国字符的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正面临打印jasper pdf报告的问题,其中包含泰文或中文字符。报告已生成但代替泰文字符显示????符号。
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.
推荐答案
您需要为泰语/中文字符添加ttf字体作为扩展名。
You need to add the ttf font for the thai/chinese char as extension.
最简单的方法是通过 ireport-designer
- 下载(或在您的电脑上使用一个)您想要的ttf字体(针对特定语言)。
- 在ireport中安装字体
- 导出字体扩展名(这会创建一个.jar)
- 将jar添加到类路径中。
- Download (or use one on your pc) your desired ttf font (for the specific language).
- Install the font in ireport
- Export the font extension (this creates a .jar)
- Add the jar to your classpath.
这是这一步的链接 iReport 以及 Jasper soft studio
This is a link for these step iReport and this in Jasper soft studio
我会尝试PDF编码: Idenity-H (带水平书写的unicode)
I would try PDF-Encoding: Idenity-H (unicode with horizontal writing)
这篇关于在jasper pdf报告中打印泰国字符的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文