cost123 Posted April 25, 2018 Share Posted April 25, 2018 Hi!I need create report in CSV file with win-1251 encoding.I have parametr <property name="net.sf.jasperreports.export.character.encoding" value="Cp1251"/> in JRXML.If I export report to CSV from interface, then file creating with encoding is win-1251.if I create CSV from Sheduler, then file creating with encoding UTF-8.How I can fix this problem? Link to comment Share on other sites More sharing options...
hozawa Posted April 25, 2018 Share Posted April 25, 2018 If you're using JasperReports Server instead of Jaspersoft Studio, you'll need to setup JasperReports Server's properties file.Under the directory where JasperReports Server is installed, there should be webapps/jasperserver/WEB-INF/classesIn this directory, there should be file jasperreports.properties. Add the property to this file and restart JasperReports Server. Link to comment Share on other sites More sharing options...
cost123 Posted April 26, 2018 Author Share Posted April 26, 2018 I addnet.sf.jasperreports.export.character.encoding=windows-1251Don't work, encoding UTF8I addnet.sf.jasperreports.export.character.encoding=Cp1251Don't work, encoding UTF8I'am using JasperReports Server:Product Version: 6.4.0Build: 20170611_1233 Link to comment Share on other sites More sharing options...
hozawa Posted April 26, 2018 Share Posted April 26, 2018 I think it's net.sf.jasperreports.csv.encoding Link to comment Share on other sites More sharing options...
cost123 Posted April 27, 2018 Author Share Posted April 27, 2018 I add thisnet.sf.jasperreports.csv.encoding=Cp1251net.sf.jasperreports.default.csv.encoding=Cp1251net.sf.jasperreports.export.character.encoding=Cp1251 But report have encoding UTF8. 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