Search This Blog

Wednesday, December 8, 2010

Grails and Jasper Reports - Issue with Utf-8 when designing reports with iReport


Jasper reports works perfectly well with grails. However I ran into some issues designing the report layout with iReport, the default designer for Jasper Reports and trying to integrate it with my grails based application. Here is the issue and solution in the hope that it is useful to others who run into this.

Please leave a note if you find this post useful or if you would like me to write something specific about grails or spring.


Jasperreports complains with utf-8 issue when it tries to render the report.

Problem can be solved adding parameter -Dfile.encoding=UTF-8 to the VM.

To add parameter edit etc/ireport.conf,
Modify 'default_options' parameter it should look like this:
   default_options="-J-Dfile.encoding=UTF-8 -J-Xms256M -J-Xmx512M"

Now the reports render perfectly - Enjoy!

No comments:

Post a Comment