How to decode html entities in JasperReports

2019-07-03 04:08发布

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?

3条回答
走好不送
2楼-- · 2019-07-03 04:24

In the textField set the markup attribute as html.

查看更多
来,给爷笑一个
3楼-- · 2019-07-03 04:35

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

查看更多
萌系小妹纸
4楼-- · 2019-07-03 04:44

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

查看更多
登录 后发表回答