I have this strange message when I try to save XML-file with XmlWriter:
"Unable to translate Unicode character \\u2009 at index 478 to specified code page."
Why it's strange?
Because when the file is small (< 1KB) there is no problem and the file it's saved correctly but if file it's big (> 500KB) I get this message?
Can sombody help me?
snippet:
string strFile = @"c:\tmp\test.x ml";
XmlWriter _xmlWriter;
XmlWriterSettin gs settings = new XmlWriterSettin gs();
settings.Encodi ng = Encoding.Defaul t;
_xmlWriter = XmlWriter.Creat e(strFile, settings);
xmlDoc.Save(_xm lWriter);
_xmlWriter.Clos e();
"Unable to translate Unicode character \\u2009 at index 478 to specified code page."
Why it's strange?
Because when the file is small (< 1KB) there is no problem and the file it's saved correctly but if file it's big (> 500KB) I get this message?
Can sombody help me?
snippet:
string strFile = @"c:\tmp\test.x ml";
XmlWriter _xmlWriter;
XmlWriterSettin gs settings = new XmlWriterSettin gs();
settings.Encodi ng = Encoding.Defaul t;
_xmlWriter = XmlWriter.Creat e(strFile, settings);
xmlDoc.Save(_xm lWriter);
_xmlWriter.Clos e();
Comment