如何把一个" - "在string.xml文件 [英] How to put a "-" in string.xml file
问题描述
我需要能够把一个 - 在里面我的strings.xml
文件中的字符串
I need to be able to put a "-" in the string inside my strings.xml
file.
我的问题是,当我把我的字符串是1261eba2-9d8c-11e1-93e3-40409e0f44a1
,日食破口大骂:
My problem is that when I am putting my string which is "1261eba2-9d8c-11e1-93e3-40409e0f44a1"
, eclipse yells:
在这一行找到多个注释: - 替换 - 与短划线字符( - , 与放;;#8211;)
Multiple annotations found at this line: - Replace "-" with an "en dash" character (–, &;#8211;)
我该如何解决这个问题?
How can I fix this?
推荐答案
所以,当你读了错误信息,你的回答将是
你要替换 -
与&放大器;#8211;
。然后,它应该工作的罚款=)
So, when you read the error message, your answer will be that
you have to replace -
with –
. Then it should work fine =)
http://en.wikipedia.org/wiki/Dash
这篇关于如何把一个" - "在string.xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!