So I have a datatableI am writing to a file with something like
fileLogger.Log(LogSeverity.Status, "Wrote out: " +
tmpFileName);
dtTemp.WriteXml(tmpFileName);
archivefiles.Add(tmpFileName);
This generates xml data that looks like the following
<?xml version="1.0" standalone="yes"?>
<DocumentElement>
<user>
<FName>EspaƱa</FName>
This is great and all - everything is there in all of it's unicoded
glory -however the folks consuming my file are not able to deal with
utf-16 encoding. How do I configure the writexml method to output
this instead (I don't want to simply change the header - I need to
escape international character to their utf-8 equivilents)
<?xml version="1.0" standalone="yes" encoding="utf-8"?>
<DocumentElement>
<user>
<FName>Espa&xxx;a</FName>
Much thanks!
Brian
P.S. I've tried using the XMLTextWriter too and setting the encoding
type to UTF-8 but I havn't had any luck there either.