Java 类android.util.Xml.Encoding 实例源码
项目:edx-app-android
文件:CourseHandoutFragment.java
private void populateHandouts(HandoutModel handout) {
hideErrorMessage();
StringBuilder buff = WebViewUtil.getIntialWebviewBuffer(getActivity(), logger);
buff.append("<body>");
buff.append("<div class=\"header\">");
buff.append(handout.handouts_html);
buff.append("</div>");
buff.append("</body>");
webview.clearCache(true);
webview.loadDataWithBaseURL(environment.getConfig().getApiHostURL(), buff.toString(),
"text/html", Encoding.UTF_8.toString(), null);
}