为什么我在网页浏览中收到一些不需要的字符?

时间:2017-03-18 07:49:59

标签: android utf-8 android-webview

我看到很多帖子和建议说要使用" utf-8",我正在使用它,但在网络视图中获得了一些额外的字符。The extra characters can be seen in the image

mWebView.loadDataWithBaseURL("file://" + file1, htmltext, "text/html", "utf-8", null);

我也试过

WebSettings settings = mWebView.getSettings();             
settings.setDefaultTextEncodingName("utf-8");

0 个答案:

没有答案
相关问题