[英]how to retrieve the code snippet from an xml file same as in original format using c# in winforms
[英]Conversion from Unicode to Original format into XML file using c#
请让我知道如何将Unicode [ex: \]
值作为[?]转义符号写入XML文件中
我在C#中使用UTF8编码和XMLWriter,但将其另存为“”。 转换成XML
相反,我希望将其写为“?” 将符号转义为XML。这可能吗?
谢谢
维努
Unicode字符x1B在XML 1.0中不合法; 无论是否进行转义,它都不能存在于XML文档中。
在XML 1.1中,它可以写为
,但是Microsoft的XML库不支持XML 1.1。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.