The following is what I have :
XmlWriterSettings xmlSettings = new XmlWriterSettings();
xmlSettings.Indent = true;
xmlSettings.IndentChars = " ";
xmlSettings.Encoding = System.Text.Encoding.UTF8;
StringBuilder sb = new StringBuilder();
using (XmlWriter writer = XmlWriter.Create(sb, xmlSettings))
============
The problem I have is the xml comes out with
<?xml Version="1.0" encoding="utf-16"?>
It really does not matter what I have in the xmlSettings, it always comes
out utf-16.
???? What am i missing ?????
Thanks.