diff --git a/Common/XmlRpcCS/SimpleHttpRequest.cs b/Common/XmlRpcCS/SimpleHttpRequest.cs index aa260f45b2..b331ce0695 100644 --- a/Common/XmlRpcCS/SimpleHttpRequest.cs +++ b/Common/XmlRpcCS/SimpleHttpRequest.cs @@ -57,8 +57,8 @@ namespace Nwc.XmlRpc { _client = client; - _output = new StreamWriter(client.GetStream(), Encoding.UTF8 ); - _input = new StreamReader(client.GetStream(), Encoding.UTF8 ); + _output = new StreamWriter(client.GetStream() ); + _input = new StreamReader(client.GetStream() ); GetRequestMethod(); GetRequestHeaders(); diff --git a/Common/XmlRpcCS/XmlRpcRequestDeserializer.cs b/Common/XmlRpcCS/XmlRpcRequestDeserializer.cs index c3d3e16f36..126a172a34 100644 --- a/Common/XmlRpcCS/XmlRpcRequestDeserializer.cs +++ b/Common/XmlRpcCS/XmlRpcRequestDeserializer.cs @@ -56,6 +56,7 @@ namespace Nwc.XmlRpc override public Object Deserialize(TextReader xmlData) { XmlTextReader reader = new XmlTextReader(xmlData); + XmlRpcRequest request = new XmlRpcRequest(); bool done = false; diff --git a/Common/XmlRpcCS/XmlRpcSerializer.cs b/Common/XmlRpcCS/XmlRpcSerializer.cs index b682f698ab..b3b9af3d7c 100644 --- a/Common/XmlRpcCS/XmlRpcSerializer.cs +++ b/Common/XmlRpcCS/XmlRpcSerializer.cs @@ -56,16 +56,15 @@ namespace Nwc.XmlRpc { using (MemoryStream memStream = new MemoryStream(4096)) { - XmlTextWriter xml = new XmlTextWriter(memStream, Encoding.UTF8); + XmlTextWriter xml = new XmlTextWriter( memStream, null ); xml.Formatting = Formatting.Indented; - xml.Indentation = 4; + xml.Indentation = 4; Serialize(xml, obj); xml.Flush(); byte[] resultBytes = memStream.ToArray(); UTF8Encoding encoder = new UTF8Encoding(); - String returns = encoder.GetString( resultBytes, 0, resultBytes.Length ); xml.Close(); return returns;