Android的WebView中LoadData - 土耳其个字符 [英] Android WebView LoadData - Turkish Chars

查看:253
本文介绍了Android的WebView中LoadData - 土耳其个字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎么能显示的WebView土耳其字符(S,G,U ...)作为loadData?

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

我的WebView是: mWebView.loadData(detailsHtml,text / html的,UTF-8);

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

感谢。

推荐答案

webView.loadData(htmlStr,text / html的;字符集= UTF-8,NULL);

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

code的这条线救了我对付土耳其的字符集。我希望它可以帮助别人了。

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

这篇关于Android的WebView中LoadData - 土耳其个字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆