[Mono-dev] Xml output
atsushi at ximian.com
Tue Jan 31 12:54:15 EST 2006
> I get weird results when using XmlWriter. The first line contains characters
> that don't appear to be legal.
> <EF><BB><BF><?xml version="1.0" encoding="utf-8"?>
There is nothing weird: it is a set of UTF-8 byte order mark bytes.
In case you don't want byte order marks in your output, set
XmlWriterSettings settings = new XmlWriterSettings ();
settings.Encoding = new UTF8Encoding (false);
XmlWriter writer = XmlWriter.Creat (settings);
More information about the Mono-devel-list