How to convert from HTML to UTF-8 in java

前端 未结 1 432
慢半拍i
慢半拍i 2020-12-11 16:44

I have an ASCII String, with HTML entities, like:

 à
 ¨
 ç

I need this String to be without those entities an

相关标签:
1条回答
  • 2020-12-11 17:02

    Take a look at org.apache.commons.lang.StringEscapeUtils.unescapeHtml(...). Apparently it understands all character entities defined in HTML 4.

    0 讨论(0)
提交回复
热议问题