I would like to unescape a XML character entity reference ü to ü in Java. How can I achieve this?
ü
ü
You can try encoding it as below:
try { String str = "üxy"; final String s = new String(str, "UTF-8"); } catch (UnsupportedEncodingException e) { Log.e("utf8", "conversion", e); }
1.4m articles
1.4m replys
5 comments
57.0k users