WebView加载html中文本乱码

596 阅读1分钟

//API提供的标准用法,无法解决乱码问题

mWebNbPeople.loadData(url, "text/html", "UTF -8");

//以下方法可解决

mWebNbPeople.loadData(url,"text/html; charset=UTF-8", null);