开发者

Android WebView LoadData - Turkish Chars

How can I show turkish chars (ş, ğ, ü ...) in webview as loadData?

My webview is: mWebView.loadData(detailsHtml, "text/html", "UTF-8");

t开发者_高级运维hanks.


webView.loadData(htmlStr, "text/html; charset=utf-8", null);

This line of code saved me to deal with turkish character set. I hope it helps others too.


Try this code

mWebView.loadDataWithBaseURL(null,"ş, ğ, ü ","text/html", "UTF-8", null);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜