gpt4 book ai didi

android - 在 strings.xml 中使用特殊字符在 WebView 中加载

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:10:09 25 4
gpt4 key购买 nike

我正在使用 WebView 来显示字符串资源。这是代码-

<string name="abc">à</string>
<string name="abcd">è</string>

当我在我的 webView 中加载它时,它会显示一些垃圾值。如何在 WebView 中显示这些特殊字符??

最佳答案

检查 this特殊字符列表以及如何在 html 中编码。

<string name="abc">&#224;</string>
<string name="abc">&#232;</string>

关于android - 在 strings.xml 中使用特殊字符在 WebView 中加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18335894/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com