Encoding JasperReports不显示UTF-8字符-MacOSX

Encoding JasperReports不显示UTF-8字符-MacOSX,encoding,jasper-reports,Encoding,Jasper Reports,我有一个用UTF-8编码的csv文件(没有BOM),我想使用JasperReports设置一个简单的报告。设置数据源后,我发现非ASCII字符没有正确显示。 我将net.sf.jasperreports.export.character.encoding更改为UTF-8,但没有任何帮助 非常感谢您的帮助。一个多小时后,我发现: iReport shell脚本不使用JAVA_选项 iReport通过netbeans nbexec命令行参数传递JVM参数 因此,为了获得iReport以使用fi

我有一个用UTF-8编码的csv文件(没有BOM),我想使用JasperReports设置一个简单的报告。设置数据源后,我发现非ASCII字符没有正确显示。 我将net.sf.jasperreports.export.character.encoding更改为UTF-8,但没有任何帮助


非常感谢您的帮助。

一个多小时后,我发现:

  • iReport shell脚本不使用JAVA_选项
  • iReport通过netbeans nbexec命令行参数传递JVM参数
因此,为了获得iReport以使用file.encoding=UTF-8i启动Java:

  • 打开的iReport包
  • 找到/Applications/Jaspersoft-iReport-Designer.app/Contents/Resources/iReport/etc/iReport.conf
  • 将-J-Dfile.encoding=UTF-8追加到默认的_选项中,作为传递

    [3]的另一个选项是设置$args变量,该变量也由ireport初始化脚本作为nbexec参数传递

  • 只是分享,因为我花了一段时间才弄明白,我在谷歌上找不到任何帮助