目前在Android中Java的字符串。我该如何将其更改为另一个定编码和替换的HTML实体,如&放大器;放大器;
与&安培;
?
There is a String in Android Java. How do I change it to another given encoding and replace HTML-entities such as &
with &
?
这是为了让国际符号可以正确显示。
This is so that international symbols can be displayed correctly.
为德$ C C HTML字符串$ 您可以使用 Html.fromHtml()
喜欢
Html.fromHtml((String) htmlCode).toString();
如果你想逆转
不是你可以使用 TextUtils.htmlEn code()