开发者

Plist contains the "&" character

I'm having a .plist file which has some values with the "&" sign, for example "M&I". When I save the file to the document folder and load it from there, I'm getting an empt开发者_如何转开发y dictionary. Any idea to how to fix this issue?


If you are directly modifying the XML file, you have to escape certain characters - & should be escaped using the XML entity &. If you use the editors, this should be done automatically for you.

If you use CDATA sections instead, you don't have to escape the characters.


If you insert the values when open plist file as property list it would do it automatically.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜