Jump to content
Changes to the Jaspersoft community edition download ×

Display Chinese character


2005 IR Help

Recommended Posts

By: beatrice - cumasan

Display Chinese character

2005-04-14 00:15

I have a field with embedded encoding using UniCNS-UCS2-H. I also have downloaded the iTextAsian.jar and place under the c:Program FilesiReport-0.4.0classes directory. When i execute report the following error occur :

 

Compiling to file... C:Program FilesApache Software FoundationTomcat 5.5webappsITAWEB-INFsrcReportITP707.jasper -> C:Program FilesApache Software FoundationTomcat 5.5webappsITAWEB-INFsrcReportITP707.java Compilation running time : 2859 Filling report... pdfExporting Exporting pdf to file... "C:Program FilesApache Software FoundationTomcat 5.5webappsITAWEB-INFsrcReportITP707.pdf" Error exporting print... ExceptionConverter: java.io.UnsupportedEncodingException: UniCNS-UCS2-H at sun.io.Converters.getConverterClass(Unknown Source) at sun.io.Converters.newConverter(Unknown Source) at sun.io.CharToByteConverter.getConverter(Unknown Source) at java.lang.StringCoding.encode(Unknown Source) at java.lang.String.getBytes(Unknown Source) at com.lowagie.text.pdf.PdfEncodings.convertToBytes(Unknown Source) at com.lowagie.text.pdf.Type1Font.<init>(Unknown Source) at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source) at net.sf.jasperreports.engine.export.JRPdfExporter.getChunk(JRPdfExporter.java:1451) at net.sf.jasperreports.engine.export.JRPdfExporter.getPhrase(JRPdfExporter.java:1428) at net.sf.jasperreports.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:1678) at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:496) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:436) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:303) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:528) at java.lang.Thread.run(Unknown Source) NESTED BY : ExceptionConverter: java.io.UnsupportedEncodingException: UniCNS-UCS2-H at sun.io.Converters.getConverterClass(Unknown Source) at sun.io.Converters.newConverter(Unknown Source) at sun.io.CharToByteConverter.getConverter(Unknown Source) at java.lang.StringCoding.encode(Unknown Source) at java.lang.String.getBytes(Unknown Source) at com.lowagie.text.pdf.PdfEncodings.convertToBytes(Unknown Source) at com.lowagie.text.pdf.Type1Font.<init>(Unknown Source) at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source) at net.sf.jasperreports.engine.export.JRPdfExporter.getChunk(JRPdfExporter.java:1451) at net.sf.jasperreports.engine.export.JRPdfExporter.getPhrase(JRPdfExporter.java:1428) at net.sf.jasperreports.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:1678) at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:496) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:436) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:303) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:528) at java.lang.Thread.run(Unknown Source) NESTED BY : net.sf.jasperreports.engine.JRException: Could not load the following font : pdfFontName : Helvetica pdfEncoding : UniCNS-UCS2-H isPdfEmbedded : false at net.sf.jasperreports.engine.export.JRPdfExporter.getChunk(JRPdfExporter.java:1476) at net.sf.jasperreports.engine.export.JRPdfExporter.getPhrase(JRPdfExporter.java:1428) at net.sf.jasperreports.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:1678) at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:496) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:436) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:303) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:528) at java.lang.Thread.run(Unknown Source) Caused by: ExceptionConverter: java.io.UnsupportedEncodingException: UniCNS-UCS2-H

 

what else should i do ?

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...