2011-09-08 53 views
3

如何在webview中以loadData方式显示土耳其字符(?,?,...)?Android WebView LoadData - 土耳其语字符

我的网页流量是:mWebView.loadData(detailsHtml, "text/html", "UTF-8");

感谢。

+0

http://code.google.com/p/android/issues/detail?id=3552 –

+2

我发现它, 如果你有htmlsource: webview.loadDataWithBaseURL( “”,源,“text/html的“,”UTF-8“,null);其他: webview.loadDataWithBaseURL(url,“”,“text/html”,“UTF-8”,null); –

+0

你可以试试这个。它的工作对我的项目... [此处输入链接的描述] [1] [1]:http://stackoverflow.com/questions/11827628/after-webview-used-custom-fonts – user1579047

回答

0

尝试此代码

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

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

这行代码保存了我来处理土耳其字符集。我希望它也能帮助别人。