* net/soap-client.el (soap-invoke): Encode the string for
authorAlex Harsanyi <AlexHarsanyi@gmail.com>
Fri, 1 Feb 2013 07:28:10 +0000 (08:28 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 1 Feb 2013 07:28:10 +0000 (08:28 +0100)
`url-request-data' as UTF-8.  Fixes
<http://code.google.com/p/emacs-soap-client/issues/detail?id=16>.

lisp/ChangeLog
lisp/net/soap-client.el

index b87c0c8..a05d0fc 100644 (file)
@@ -1,3 +1,9 @@
+2013-02-01  Alex Harsanyi  <AlexHarsanyi@gmail.com>
+
+       * net/soap-client.el (soap-invoke): Encode the string for
+       `url-request-data' as UTF-8.  Fixes
+       <http://code.google.com/p/emacs-soap-client/issues/detail?id=16>.
+
 2013-02-01  Glenn Morris  <rgm@gnu.org>
 
        * calc/calc-help.el (calc-view-news): Use view-emacs-news.
index 6b4bc16..4ba8e5b 100644 (file)
@@ -1768,7 +1768,11 @@ operations in a WSDL document."
             (url-package-name "soap-client.el")
             (url-package-version "1.0")
             (url-http-version "1.0")
-            (url-request-data (soap-create-envelope operation parameters wsdl))
+           (url-request-data
+            ;; url-request-data expects a unibyte string already encoded...
+            (encode-coding-string
+             (soap-create-envelope operation parameters wsdl)
+             'utf-8))
             (url-mime-charset-string "utf-8;q=1, iso-8859-1;q=0.5")
             (url-request-coding-system 'utf-8)
             (url-http-attempt-keepalives t)