Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export markup html fields to csv, character encoding - Jasper

I have text field in Jasper report jrxml template marked as html. This property removes any HTML tags from text and it works fine as html export, as pdf, excel...etc.

Only issue is csv export. It shows strange characters on tags positions.

enter image description here

Changing default encoding from 'UTF-8' to 'ISO-8859-1' did not give results.

<property name="net.sf.jasperreports.export.character.encoding" value="ISO-8859-1"/>

Anyone knows solution?

Thanks

like image 263
Minja Avatar asked Dec 01 '25 06:12

Minja


1 Answers

This solved issue

<property name="net.sf.jasperreports.export.csv.write.bom" value="true"/>
like image 142
Minja Avatar answered Dec 06 '25 17:12

Minja



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!