问题
I have a text (sInfoText) with a lots of special characters like 'è'.
I would like to show this special character also in a webview, but I get rubbish characters. Howto convert this special characters programmatically?
wvinfo.loadData(sInfoText,"text/html", "UTF-8");
回答1:
try
wvinfo.loadData(sInfoText, "text/html; charset=UTF-8", null);
this ll work on above 4.0.0
来源:https://stackoverflow.com/questions/27998872/show-special-characters-in-a-webview