quickdunk Posted September 2, 2014 Share Posted September 2, 2014 How can I set charecter encondig before export the report?Before version 5.6.0exporter.setParameter(JRExporterParameter.CHARACTER_ENCODING, "ISO-8859-1");With the new version, how can I set? Link to comment Share on other sites More sharing options...
misorkin Posted April 3, 2017 Share Posted April 3, 2017 We can use constructor for class SimpleWriterExporterOutput with second encoding parametr: public SimpleWriterExporterOutput(java.io.File file, java.lang.String encoding) File fl=new File(sFl); JRTextExporter exporter = new JRTextExporter(); exporter.setExporterOutput(new SimpleWriterExporterOutput(fl, "Cp1251")); Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now