c# - Specifying the Encoding format on XMLDoc -


I have a System.Xml.XmlDocument object and I want to change UTIL encoding from UT16 to UTF8. How do I do this?

XMLDChat uses the own (dom-based) internal representation of XML; Encoding only comes when the XML is written and stored somewhere in the form of text, you can use the method and use XmlWriter using a XmlWriterSettings And you can pass in XmlWriter.Create . Is a property where you can specify UTF 8.

For example:

  XmlWriterSettings xmlWriterSettings = new XmlWriterSettings (); XmlWriterSettings.Encoding = encoding. UTF8; (XMLRMRMMRRIR = XMLRRRT. (Filename, XMLRertifications) is using (XML Document YRTTO (XMLR))}  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -