问题
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.
来源:https://stackoverflow.com/questions/8745406/how-to-decode-html-entities-in-jasperreports