Issue Description
Certain characters only render correctly via a particular encoding. For example source data might contains special characters, like foreign-languate accents and inverted question marks for example. When exported to CSV, the characters might be look incorrectly since the JR default encoding is UTF-8
Resolution
A property exists that lets you specify the character encoding for export:
It can be set in config file or within the JRXML individually.
Example jrxml tags are:
<property name="net.sf.jasperreports.export.character.encoding" value="Cp1252"/>
UTF-8 is default, but you could do others, like these jasperreports.properties examples:
net.sf.jasperreports.export.character.encoding=ISO-8859-1
OR net.sf.jasperreports.export.character.encoding=ASCII
Note, a defect existed in 6.2.x in which this setting was ignored. So please upgrade if you're hitting this in 6.2.x and the original release of 6.3.0.
Ref. Case 01654457
Recommended Comments
There are no comments to display.
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