c# - XmlTextWriter: Allows Unicode? -


I am using XmlTextWriter to save some configuration elements for my program (this is only 10-15 string value That's the reason I'm using 'XmlTextWriter'). My code looks as follows:

  XmlTextWriter author = new XmlTextWriter ("FILENAME.XML", blank); Author.WriteStartElement ("config"); Author. Write element string ("paragraph 1", absolute 1); Author. White Element String ("Para 2", Ultimate 2); ... Author. Right-handed element (); Writer.Close ();  

I would like to permit paramax values ​​to include Unicode; nothing is fancy - these values ​​come in user input data from the courses, and I get the system working fine globally Wish (Chinese, Japanese, Hebrew, Arabic, etc.) I am not parsing the data, I want to present it the next time the program loads.

What is the way to achieve it?

The manufacturer has the second parameter. Default encoding if left left is UTF8.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -