简体   繁体   中英

Conversion from Unicode to Original format into XML file using c#

Please let me know how to write a unicode [ex: \] value into XML file as [?]escape symbol

I'm using UTF8 encoding and XMLWriter in C#, but it saves as "&#x1B ;" into XML

instead i want it to be written as "?" escape symbol into XML.. Is this possible?

Thanks

Vinu

The Unicode character x1B is not legal in XML 1.0; it cannot be present in an XML document with or without escaping.

In XML 1.1 it can be written as  , but Microsoft's XML libraries do not support XML 1.1.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM