How to decode html entities in JasperReports

﹥>﹥吖頭↗ 提交于 2020-01-04 02:05:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!