The following is what I have :
XmlWriterSettin gs xmlSettings = new XmlWriterSettin gs();
xmlSettings.Ind ent = true;
xmlSettings.Ind entChars = " ";
xmlSettings.Enc oding = System.Text.Enc oding.UTF8;
StringBuilder sb = new StringBuilder() ;
using (XmlWriter writer = XmlWriter.Creat e(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.
XmlWriterSettin gs xmlSettings = new XmlWriterSettin gs();
xmlSettings.Ind ent = true;
xmlSettings.Ind entChars = " ";
xmlSettings.Enc oding = System.Text.Enc oding.UTF8;
StringBuilder sb = new StringBuilder() ;
using (XmlWriter writer = XmlWriter.Creat e(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.
Comment