【问题标题】:Unicode support in webview on android 4.2android 4.2 上 webview 中的 Unicode 支持
【发布时间】: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


    【解决方案1】:

    你用的两个方法都是对的,

    Android WebView UTF-8 not showing

    但您可能正面临一个错误。

    Wrong character set displayed for Telugu unicode on Nexus 7 - Jelly Bean 4.2.1

    我可以确认此问题现已通过最新更新得到解决 到 4.2.2

    更新:

    如果您认为发现了新错误。 Android 开源项目 - 问题跟踪器 https://code.google.com/p/android/issues/list

    嘿,这是您报告的问题!:)

    Gurmukhi (Punjabi) Unicode support in webview on android 4.2

    【讨论】:

    • 不幸的是,我也尝试了 4.2.2,但旁遮普语 Unicode 支持仍然被破坏..请指导报告错误的地方。
    猜你喜欢
    • 2011-04-26
    • 1970-01-01
    • 2011-07-15
    • 2014-12-25
    • 2013-08-01
    • 1970-01-01
    • 2013-01-03
    • 2016-06-24
    • 1970-01-01
    相关资源
    最近更新 更多