[Mono-bugs] [Bug 80820][Wis] New - XmlTextWriter: incorrect xml declaration
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Feb 13 05:29:47 EST 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by nicola at dinosoft.it.
http://bugzilla.ximian.com/show_bug.cgi?id=80820
--- shadow/80820 2007-02-13 05:29:47.000000000 -0500
+++ shadow/80820.tmp.21080 2007-02-13 05:29:47.000000000 -0500
@@ -0,0 +1,35 @@
+Bug#: 80820
+Product: Mono: Class Libraries
+Version: 1.2
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Sys.XML
+AssignedTo: atsushi at ximian.com
+ReportedBy: nicola at dinosoft.it
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: XmlTextWriter: incorrect xml declaration
+
+Steps to reproduce the problem:
+
+XmlWriterSettings xmlws = new XmlWriterSettings();
+xmlws.Encoding = Encoding.UTF8;
+StringWriter output = new StringWriter();
+XmlWriter xml = XmlTextWriter.Create(output, xmlws);
+xml.WriteStartDocument();
+xml.WriteStartElement("test");
+xml.WriteEndElement();
+xml.WriteEndDocument();
+
+The emitted XML declaration is
+<?xml version="1.0" encodinf="utf-16"?>
+
+but should be
+
+<?xml version="1.0" encodinf="utf-8"?>
More information about the mono-bugs
mailing list