Syed
Syed

Reputation: 98

Dot(.) not converted to unicode: Dataset.WriteXML C#

I am writing a DataSet into an XML file using:

DataSet.WriteXml(XMLWriter, XmlWriteMode.WriteSchema);

XMLWriter encoding is set with Encoding.UTF8.

All works fine with my code, except the dot ('.') character. WriteXml converts special characters into Unicode HEX, for example, space (' ') as x0020 and underscore ('_') as x005F. However, dot ('.') is stored as-is.

How to make sure that dot ('.') is stored as x2024 in the XML file generated using DataSet.WriteXML?

Upvotes: 0

Views: 318

Answers (0)

Related Questions