From 8df2119bc766132a36edb988d0963196694c4aa3 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Thu, 5 Jul 2007 18:31:59 +0000 Subject: * Changed XmlRpc to specify utf-8 --- Common/XmlRpcCS/XmlRpcResponder.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Common/XmlRpcCS/XmlRpcResponder.cs') diff --git a/Common/XmlRpcCS/XmlRpcResponder.cs b/Common/XmlRpcCS/XmlRpcResponder.cs index 41f855c..05377a2 100644 --- a/Common/XmlRpcCS/XmlRpcResponder.cs +++ b/Common/XmlRpcCS/XmlRpcResponder.cs @@ -30,6 +30,7 @@ namespace Nwc.XmlRpc using System; using System.Xml; using System.Net.Sockets; + using System.Text; /// The class is a container of the context of an XML-RPC dialog on the server side. /// Instances of this class maintain the context for an individual XML-RPC server @@ -98,8 +99,9 @@ namespace Nwc.XmlRpc if (Logger.Delegate != null) Logger.WriteEntry(xmlRpcResp.ToString(), LogLevel.Information); - XmlRpcServer.HttpHeader(httpReq.Protocol, "text/xml", 0, " 200 OK", httpReq.Output); + XmlRpcServer.HttpHeader(httpReq.Protocol, "text/xml", 0, " 200 OK", httpReq.Output); httpReq.Output.Flush(); + XmlTextWriter xml = new XmlTextWriter(httpReq.Output); _serializer.Serialize(xml, xmlRpcResp); xml.Flush(); -- cgit v1.1