Flutter-CuriosityApp icon indicating copy to clipboard operation
Flutter-CuriosityApp copied to clipboard

网页详情乱码,怎么解决

Open loki0210 opened this issue 6 years ago • 2 comments

loki0210 avatar Jan 07 '19 08:01 loki0210

你这个应该是Android上面的问题吧,把webView.loadData(url, "text/html", "UTF-8");方法替换成webView.loadData(url, "text/html; charset=UTF-8", null);就可以了

xumaohuai avatar Jan 07 '19 08:01 xumaohuai

你这个应该是Android上面的问题吧,把webView.loadData(url, "text/html", "UTF-8");方法替换成webView.loadData(url, "text/html; charset=UTF-8", null);就可以了 多谢多谢,解决了

loki0210 avatar Jan 07 '19 09:01 loki0210