rhoegg 2003/02/07 20:11:25
Modified: src/java/org/apache/xmlrpc/applet Tag: XMLRPC_1_2_BRANCH
SimpleXmlRpcClient.java
Log:
Modified SimpleXmlRpcClient to use a default (currently only) encoding
of ISO-8859-1 to mirror the functionality of XmlRpcClient. Thanks to
David Wo <[EMAIL PROTECTED]>. This was in response to Bug 8686.
Revision Changes Path
No revision
No revision
1.5.2.2 +3 -2
xml-rpc/src/java/org/apache/xmlrpc/applet/SimpleXmlRpcClient.java
Index: SimpleXmlRpcClient.java
===================================================================
RCS file:
/home/cvs/xml-rpc/src/java/org/apache/xmlrpc/applet/SimpleXmlRpcClient.java,v
retrieving revision 1.5.2.1
retrieving revision 1.5.2.2
diff -u -r1.5.2.1 -r1.5.2.2
--- SimpleXmlRpcClient.java 7 Feb 2003 23:27:27 -0000 1.5.2.1
+++ SimpleXmlRpcClient.java 8 Feb 2003 04:11:24 -0000 1.5.2.2
@@ -72,6 +72,7 @@
import java.util.Stack;
import java.util.Vector;
import org.apache.xmlrpc.Base64;
+import org.apache.xmlrpc.XmlRpc;
import org.xml.sax.AttributeList;
import org.xml.sax.HandlerBase;
import org.xml.sax.InputSource;
@@ -688,7 +689,7 @@
public XmlWriter(StringBuffer buf)
{
this.buf = buf;
- buf.append("<?xml version=\"1.0\"?>");
+ buf.append("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>");
}
/**