We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: [name of my feature request]
Remove BOM from info.plist
The save function of PListDict.cs should avoid adding BOM to the file.
public void Save(string fileName, XDeclaration declaration, XDocumentType docType) { XElement plistNode = new XElement("plist", this.ParseDictForSave(this)); plistNode.SetAttributeValue("version", "1.0"); XDocument file = new XDocument(declaration, docType); file.Add(plistNode); XmlWriterSettings settings = new XmlWriterSettings(); settings.Encoding = new UTF8Encoding(false); // Use UTF8 without BOM settings.Indent = true; using (FileStream fs = new FileStream(fileName, FileMode.Create, FileAccess.Write)) using (XmlWriter writer = XmlWriter.Create(fs, settings)) { file.Save(writer); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Checklist
Feature Request: [name of my feature request]
Goals
Remove BOM from info.plist
Expected Results
The save function of PListDict.cs should avoid adding BOM to the file.
Code Samples & Details
The text was updated successfully, but these errors were encountered: