Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to escape special characters in JasperReports?

How to escape special characters in JasperReports?

I want to escape special characters like :- é, â, è, ^, @ in jasper reports, so is there any way we can escape this characters ?

like image 861
Garudadwajan Avatar asked Oct 08 '09 14:10

Garudadwajan


People also ask

What language does jaspersoft use?

All of the formulas in JasperReports are defined through expressions. The default expression language is Java, but if you are not a programmer, we recommend that you design your projects with JavaScript or Groovy because those languages hide a lot of the Java complexity.

How do I compile JasperReports?

jrxml report are in MyReports group. Expand this group, find your . jrxml report and rightclick on it. In context menu choose 'Compile report'.

Where is the JasperReports properties file?

In <jasperserver-root>/WEB-IN/classes you can find the file jasperreports. properties. This is the file that you need to modify to set some properties to the value you want for all reports running in JasperReports Server.


1 Answers

Try this:

  • instead of 'é' use '\u00E9'
  • instead of 'â' use '\u00E2'
  • instead of 'è' use '\u00E8'

etc.

like image 160
Boris Pavlović Avatar answered Oct 06 '22 00:10

Boris Pavlović