我想在字符串中使用以下 unicode 字符:🚕
我通过 this 找到了它的十六进制和十进制代码:
虽然我知道如何在 strings.xml
中的字符串中使用“&”符号,但这样做:
<string name="Example">Example character &</string>
我不能使用汽车标志。
如何在 strings.xml 的字符串中使用此 unicode 字符?
更新一:
按照使用这个的第一个解决方案:🚗
我收到以下错误:ERROR IN APPLICATION: input is not valid Modified UTF-8:
最佳答案
这是
<string name="Example">Example character \u0026</string>
在此处查看更多 unicode 字符:
http://www.utf8-chartable.de/unicode-utf8-table.pl?number=1024&utf8=0x
关于android - 在 strings.xml 中使用 Unicode 字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36666543/