From cd87ae10a83f64f6afa24d8611f1d10aa3c09086 Mon Sep 17 00:00:00 2001 From: Alex Harsanyi Date: Fri, 1 Feb 2013 08:28:10 +0100 Subject: [PATCH] * net/soap-client.el (soap-invoke): Encode the string for `url-request-data' as UTF-8. Fixes . --- lisp/ChangeLog | 6 ++++++ lisp/net/soap-client.el | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b87c0c87da5..a05d0fc0347 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2013-02-01 Alex Harsanyi + + * net/soap-client.el (soap-invoke): Encode the string for + `url-request-data' as UTF-8. Fixes + . + 2013-02-01 Glenn Morris * calc/calc-help.el (calc-view-news): Use view-emacs-news. diff --git a/lisp/net/soap-client.el b/lisp/net/soap-client.el index 6b4bc16c111..4ba8e5b5854 100644 --- a/lisp/net/soap-client.el +++ b/lisp/net/soap-client.el @@ -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) -- 2.11.4.GIT