撇号前面没有\ [英] Apostrophe not preceded by \

查看:79
本文介绍了撇号前面没有\的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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">&apos;{string}&apos; 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?

推荐答案

这些都应根据

这篇关于撇号前面没有\的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆