Jump to content

ExceptionConverter: java.io.UnsupportedEncodingException: UniJIS-UCS2-HW-H

Recommended Posts

Need urgent help...!

When I am trying to export pdf file from java (Savvion BPM) then Japanese characters are not getting displayed. And I am getting below exception on server. I have add MS Mincho ttf file in jre and also exported jar using iReport. My font.xml file which is inside the msmincho.jar contains following text.

<?xml version="1.0" encoding="UTF-8"?>
   <fontFamily name="MS Mincho">

I have added iTextasian.jar also but below excpetion is coming.


ExceptionConverter: java.io.UnsupportedEncodingException: UniJIS-UCS2-HW-H
        at java.lang.StringCoding.encode(StringCoding.java:269)
        at java.lang.String.getBytes(String.java:946)
        at com.lowagie.text.pdf.PdfEncodings.convertToBytes(Unknown Source)
        at com.lowagie.text.pdf.TrueTypeFont.<init>(Unknown Source)
        at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)
        at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)
        at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)
        at net.sf.jasperreports.engine.export.JRPdfExporter.getFont(JRPdfExporter.java:2068)
        at net.sf.jasperreports.engine.export.JRPdfExporter.getChunk(JRPdfExporter.java:1817)
        at net.sf.jasperreports.engine.export.JRPdfExporter.getPhrase(JRPdfExporter.java:1786)
        at net.sf.jasperreports.engine.export.SimplePdfTextRenderer.getPhrase(SimplePdfTextRenderer.
        at net.sf.jasperreports.engine.export.SimplePdfTextRenderer.render(SimplePdfTextRenderer.jav


Please help me as I am stuck up. Appreciate your immediate help.


Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...