GB2312换成GBK试试,生辟字前者不识

解决方案 »

  1.   

    补充一下.需要输出的PDF文件在Print Preview里的显示都是正常的.但是到转换(Identity-H)成PDF就是乱码.
      

  2.   

    在Print Preview里生成预覧:
    INFO:  System.out log target started ... previous log messages could have been ignored.
    INFO:  Registering fonts for the iText library; using a cached font registry.
    INFO:  Completed font registration.
    Processing Report: C:\jfreereport\vivianjDemo\report3.xmlINFO:  setReport(..): started pagination ...在从Print Preview里转换PDF的过程.出现以下信息:
    WARN:  BaseFont.createFont failed. Key = Arial Unicode MSFont 'Arial Unicode MS' with 'UTF-8' is not recognized.
    WARN:  BaseFont.createFont failed. Key = Arial Unicode MSFont 'Arial Unicode MS' with 'MS936' is not recognized.
    WARN:  BaseFont.createFont failed. Key = Arial Unicode MSFont 'Arial Unicode MS' with 'MS936' is not recognized.
    WARN:  BaseFont.createFont failed. Key = Arial Unicode MSFont 'Arial Unicode MS' with 'MS932' is not recognized.
    WARN:  BaseFont.createFont failed. Key = Arial Unicode MSFont 'Arial Unicode MS' with 'MS950' is not recognized.
    WARN:  BaseFont.createFont failed. Key = Arial Unicode MSFont 'Arial Unicode MS' with 'UTF-16' is not recognized.
    WARN:  BaseFont.createFont failed. Key = Arial Unicode MSFont 'Arial Unicode MS' with 'UTF-8' is not recognized.
    WARN:  BaseFont.createFont failed. Key = Arial Unicode MSFont 'Arial Unicode MS' with 'ISO-2022-CN-GB' is not recognized.
    WARN:  BaseFont.createFont failed. Key = Arial Unicode MSFont 'Arial Unicode MS' with 'ISO-2022-JP' is not recognized.
    WARN:  BaseFont.createFont failed. Key = Arial Unicode MSFont 'Arial Unicode MS' with 'ISO-2022-CN-CNS' is not recognized.
      

  3.   

    我用的是jasperreport + iPort做的,觉得中文问题是
    1:front 要选对 一般是sinsun code要选支持中文解码的,比如 ch -rh gb2312 ,gbk等
    2:textAsia.jar打包要deploy进去
    3:XML用UTF-8格式
    4:text/html pagecoding=gb2312
      

  4.   

    谢谢楼上的.不过我是在jfreereport做的.