* 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>.
This commit is contained in:
Alex Harsanyi 2013-02-01 08:28:10 +01:00 committed by Michael Albinus
parent 422ff52b80
commit cd87ae10a8
2 changed files with 11 additions and 1 deletions

View 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.

View 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)