How to decode html entities in JasperReports

2019-07-03 03:54发布

问题:

I have some reports written in JasperReports and they display html entities literally, for example, bullet point • is shown using html entity textual representation: #8226;.

Do you know any way around it?

回答1:

In the textField set the markup attribute as html.



回答2:

If you are using iReport for designing the reports, checkout "markup" property in the properties window, for that particular field.



回答3:

As the reports are XML layouts, they can be converted to UTF-8 easily as 8226 is the Unicode number.