Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Plist contains the "&" character

I'm having a plist file which has some values with the "&" sing for example M&I, when i save the file to document folder and load it from their,i'm getting empty dictatiory, any idea to how to fix this issue.

like image 621
Sam Avatar asked Sep 21 '10 06:09

Sam


People also ask

What does Info plist contain?

The Info. plist file contains critical information about the configuration of an iOS mobile app—such as iOS versions that are supported and device compatibility—which the operating system uses to interact with the app. This file is automatically created when the mobile app is compiled.

What is the meaning of plist?

(1) (Properties LIST) A file in the Mac and GNUstep environments that stores user settings. The pList is also used to hold meta-data about Mac application bundles (see APP file).

What is an apple plist?

Apple Property List (PLIST) files are used to store serialized objects. They are mostly used in macOS, iOS, NeXTSTEP, and GNUstep programming frameworks.

What is purpose of plist file?

A PLIST file is a special text file that contains data in the Property List format. The file is used by macOS, iOS, and iPadOS applications to store settings and other data in a key-value format with an XML structure. For example, every iPhone app includes at least one PLIST file called Info.


1 Answers

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.

like image 191
Georg Fritzsche Avatar answered Sep 18 '22 11:09

Georg Fritzsche