hongyang321 发表于 2013-2-7 21:24:44

webview 乱码

 项目中使用以下提取带有中文的html,出现了乱码
holder.webView.loadData(html, “text/html”, “utf-8″);
经过多次尝试发现用
holder.webView.loadDataWithBaseURL (null, html, “text/html”, “utf-8″,null);
这个方法却能很好解决乱码问题,遇到这个问题的朋友不妨一时。
页: [1]
查看完整版本: webview 乱码