Jump to content
Changes to the Jaspersoft community edition download ×

How to transform the escape characters to original when it shows in reports?


victorlizonglin
Go to solution Solved by victorlizonglin,

Recommended Posts

Hi guys, I created a report based on my database. Becuase the data in the database has some strange characters, such as "&amp", I wonder if there a way or expression to transform it when previewing the report. Like to add something on Fields expression, so once my report takes the data, the data could be encoded?

Thanks for the help!

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution

OK, I found the answer.

The question is transform the escape characters suck as "&" to "&". So the actual question should be how to decode the URL escape characters.

The solution is to add a markup element on textField.

<textElement markup="html">

The detailed info could be found in there: http://jasperreports.sourceforge.net/sample.reference/markup/ 

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...