Jump to content
Changes to the Jaspersoft community edition download ×

Why CSV file have a wrong encoding?


cost123

Recommended Posts

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

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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/classes

In 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

I add

net.sf.jasperreports.export.character.encoding=windows-1251

Don't work, encoding UTF8

I add

net.sf.jasperreports.export.character.encoding=Cp1251

Don't work, encoding UTF8

I'am using JasperReports Server:

Product Version: 6.4.0

Build: 20170611_1233

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...