How can I write character & in android strings.xml
I wrote the following in the strings.xml
file:
<string name="game_settings_dragNDropMove_checkBox">Move by Drag&Drop</string>
I got the following error:
The reference to entity "Drop" must end with the ';' delimiter.
How can I write character & in the strings.xml?
编码:
&
For special character I normally use the Unicode definition, for the '&' for example: u0026 if I am correct. Here is a nice reference page: http://jrgraphix.net/research/unicode_blocks.php?block=0
This is a my issues, my solution is as following: Use >
for <, <
for > , &
for & , "'"
for ' , "
for ""
上一篇: Xcode4:在哪里改变tabbar