How to control the encoding in the generated XML

zhaozj2021-02-16  78

How to let me write the first line of XML files

Change I want

? ------- XmlTextWriter writer = new XmlTextWriter (path, System.Text.Encoding.UTF8); writer.WriteStartDocument (); writer.WriteStartElement ( "Entity"); writer.WriteEndElement (); writer.WriteEndDocument () Writer.Close ();

转载请注明原文地址:https://www.9cbs.com/read-12283.html

New Post(0)