阅读334 返回首页    go 阿里云 go 技术社区[云栖]


android webView.loadData乱码解决

android webView.loadData 乱码解决

webView.getSettings().setDefaultTextEncodingName("UTF -8");//设置默认为utf-8
webView.loadData(htmlData, "text/html", "UTF -8");//API提供的标准用法,无法解决乱码问题
webView.loadData(htmlData, "text/html; charset=UTF-8", null);//这种写法可以正确解码


最后更新:2017-04-03 07:57:02

  上一篇:go 摩托罗拉HR的变革管理(中英文对照)
  下一篇:go HBase写性能初步测试