撇号前面没有\ [英] Apostrophe not preceded by \
本文介绍了撇号前面没有\的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在android应用程序中定义了一个字符串:
I have a string defined in an android application:
<string name="search_occurs">'{string}' occurs {times}</string>
这会导致错误:撇号前面不加\(在{{string}'中发生{times})
This gives the error: Apostrophe not preceded by \ (in '{string}' occurs {times})
我已经尝试了很多方法来解决此问题:
I've tried a number of things to fix this:
<string name="search_occurs">\'{string}\' occurs {times}</string>
<string name="search_occurs">'{string}' occurs {times}</string>
<string name="search_occurs"><![CDATA['{string}' occurs {times}]]></string>
<string name="search_occurs"><![CDATA[\'{string}\' occurs {times}]]></string>
我无法摆脱错误.我想念什么?
I'm not able to get rid of the error. What am I missing?
推荐答案
查看全文