【发布时间】:2014-02-12 13:26:40
【问题描述】:
在 android 4.1 之前,我的 android 应用程序一直正确显示 unicode 字符。但现在在 Android 4.2 果冻豆上,没有显示 unicode 字符。 我使用了各种论坛建议的以下设置:
web.getSettings().setDefaultTextEncodingName("utf-8");
web.loadDataWithBaseURL(null, htmlData, "text/html", "utf-8", null);
我的 htmlData 变量的元内容类型设置为 urf-8
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
我不知道我在哪里犯了错误。它在 4.2 之前的所有版本上都可以正常工作 请帮忙。
【问题讨论】:
标签: android unicode utf-8 webview android-4.2-jelly-bean