以PDF格式导出jasper报告时,未显示传递给参数的马拉地语字符(使用unicode)。
JRExporter ex=new JRPdfExporter();
ex.setParameter(JRExporterParameter.CHARACTER_ENCODING,"UTF-8");
ex.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
ex.setParameter(JRExporterParameter.OUTPUT_FILE_NAME,"E:/DATA/"+fileNewNameF);
答案 0 :(得分:0)
我的问题解决了 我用过
`JRGraphics2DExporter exporter = new JRGraphics2DExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
exporter.setParameter(JRGraphics2DExporterParameter.GRAPHICS_2D, grx);
exporter.setParameter(JRExporterParameter.PAGE_INDEX, new Integer(i));
exporter.exportReport();`