How can i convert HTML symbol to Java symbol? For example: I have  String and i need Java char like \ue000. What i need to do?
Asked
Active
Viewed 282 times
0
Procurares
- 2,131
- 4
- 21
- 34
2 Answers
1
Try unescapeHtml4 from the Apache Commons toolkit.
nneonneo
- 162,933
- 34
- 285
- 360
-
How can i use it in Android, i need to install some additional library? – Procurares Feb 17 '13 at 00:58
-
1See http://stackoverflow.com/questions/2146870/importing-org-apache-commons-into-android-applications. Yes, it's an additional library, but it has so much useful stuff you'll want to keep using it ;) – nneonneo Feb 17 '13 at 01:01
-
Thank you! I'll try to use it. – Procurares Feb 17 '13 at 01:09
0
I found better solution in Android. I just call static method Html.fromHtml(""), and the given result wat another String in Java source format like \ue000.
Procurares
- 2,131
- 4
- 21
- 34