Reputation: 387
In my Android application I am trying to display German Text. ö ä ü ß those characters are unable to display in TextView
. If anyone having idea how to set font or how to display characters let me know. The Data I am receiving from services.
Upvotes: 1
Views: 3951
Reputation: 387
My problem solved I add
DocumentBuilder db = dbf.newDocumentBuilder();
ByteArrayInputStream bis = new ByteArrayInputStream(xml.getBytes("UTF-8"));
doc = db.parse(bis);
in my code in xml reader so now I can display german characters properly...
Upvotes: 0
Reputation: 63744
I think you should read wikipedia: Character_encoding as well as The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)
Upvotes: 4