Display unicode characters in TextView Android

前端 未结 2 1554

There are a number of posts all over the internet on this topic, however none of them have been able to isolate and solve the problem.

I am trying to show some special U

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-08 22:39

    If I'm understanding your situation correctly, you might want to consider the StringEscapeUtils.unescapeXml() method. It's in the common-lang.jar file available here: http://commons.apache.org/lang/

    It will take encoded symbols (for example ' for an apostrophe) and get you to a proper character.

提交回复
热议问题