How an I use Latin-1 letters in JRXML and JasperReports?

Posted by Jonas on Stack Overflow See other posts from Stack Overflow or by Jonas
Published on 2010-05-10T23:30:15Z Indexed on 2010/05/10 23:34 UTC
Read the original article Hit count: 485

I would like to use Latin-1 letters in JasperReports. In my JRXML-file I have:

  <staticText>
    <reportElement x="0" y="0" width="555" height="25"/>
    <text><![CDATA[Åäö]]></text>
  </staticText>

If I'm not using any Latin-1 letters it works, but when I'm using them I get a JRException when I do:

JasperCompileManager.compileReportToFile("reports/ReportFile.jrxml");

How can I support Latin-1 in JRXML and JasperReports?

© Stack Overflow or respective owner

Related posts about jasper-reports

Related posts about jrxml