[Mono-dev] Differences in XmlSerializer.Serialize(stream, object)
Tom Philpot
tom.philpot at logos.com
Thu Jul 22 19:14:49 EDT 2010
On Mono, XmlSerializer.Serialize(object, stream) uses the default encoding for the platform. .NET appears not to specify an encoding, as evidenced by the output from the code below.
Due to the way it currently works on Mono, Unicode characters don't get serialized and deserialized on Mono correctly when using the XmlSerializer.Serialize(object, stream) constructor:
Here's the example code:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100722/9ac9f5c8/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: XmlSerializationText.cs
Type: application/octet-stream
Size: 593 bytes
Desc: XmlSerializationText.cs
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100722/9ac9f5c8/attachment.obj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100722/9ac9f5c8/attachment.htm
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: XmlSerializer.patch.txt
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100722/9ac9f5c8/attachment.txt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100722/9ac9f5c8/attachment-0001.htm
More information about the Mono-devel-list
mailing list