aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Common/XmlRpcCS/XmlRpcSerializer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Common/XmlRpcCS/XmlRpcSerializer.cs')
-rw-r--r--Common/XmlRpcCS/XmlRpcSerializer.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/Common/XmlRpcCS/XmlRpcSerializer.cs b/Common/XmlRpcCS/XmlRpcSerializer.cs
index b682f69..b3b9af3 100644
--- a/Common/XmlRpcCS/XmlRpcSerializer.cs
+++ b/Common/XmlRpcCS/XmlRpcSerializer.cs
@@ -56,16 +56,15 @@ namespace Nwc.XmlRpc
56 { 56 {
57 using (MemoryStream memStream = new MemoryStream(4096)) 57 using (MemoryStream memStream = new MemoryStream(4096))
58 { 58 {
59 XmlTextWriter xml = new XmlTextWriter(memStream, Encoding.UTF8); 59 XmlTextWriter xml = new XmlTextWriter( memStream, null );
60 xml.Formatting = Formatting.Indented; 60 xml.Formatting = Formatting.Indented;
61 xml.Indentation = 4; 61 xml.Indentation = 4;
62 Serialize(xml, obj); 62 Serialize(xml, obj);
63 xml.Flush(); 63 xml.Flush();
64 64
65 byte[] resultBytes = memStream.ToArray(); 65 byte[] resultBytes = memStream.ToArray();
66 66
67 UTF8Encoding encoder = new UTF8Encoding(); 67 UTF8Encoding encoder = new UTF8Encoding();
68
69 String returns = encoder.GetString( resultBytes, 0, resultBytes.Length ); 68 String returns = encoder.GetString( resultBytes, 0, resultBytes.Length );
70 xml.Close(); 69 xml.Close();
71 return returns; 70 return returns;