java 如何在android XML文件中将欧元符号编码为strings.xml
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10449582/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to encode a Euro symbol into strings.xml in android XML files
提问by Filip Majernik
I thought, that this is gonna be pretty easy to find out. However, google is giving me just bad results. Please, does anyone know how can I write a Euro symbol into a strings.xml value? I still get an exception that such value is not allowed. Thanks.
我想,这很容易找到。但是,谷歌给我的结果很糟糕。请问,有谁知道如何将欧元符号写入strings.xml 值?我仍然得到一个例外,即不允许这样的值。谢谢。
回答by Guillaume Polet
Use the XML/HTML entity:
使用 XML/HTML 实体:
€