最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
WebView加载html标签中文乱码解决办法
时间:2016-03-26 编辑:简简单单 来源:一聚教程网
方法1:
String html="
我是测试用的标签
";webView.loadData(html, "text/html", "utf-8");
效果如下:
啊嘞。乱码了。。试试下面的方法
方法2:
String html="
我是测试用的标签
";// webView.loadData(html, "text/html", "utf-8");
webView.loadDataWithBaseURL(null, html, "text/html", "utf-8", null);
效果如下:
可以了,完美。。。。
相关文章
- sora软件价格介绍 02-22
- sora官网入口地址一览 02-22
- Sora生成的视频使用教程 02-22
- 《梦幻西游》元宵灯谜线索答案大全2024 02-22
- 《原神》有朋自远方来第一天通关攻略 02-22
- 《苏醒之路》四个结局达成攻略 02-22