In url-http.el there is a function url-http-create-request with the
following check:
;; Bug#23750
(unless (= (string-bytes request)
(length request))
(error "Multibyte text in HTTP request: %s" request))
(url-http-debug "Request is: \n%s" request)
It makes it impossible to send utf-8 or latin-1 strings in the body.
I need it for some requests by soap-client.
Would be nice If we could have an extra variable to allow latin-1 strings.
For example url-http-allow-multibyte-body or
url-http-prevent-multibyte-request, or something like that.
then do
(unless (and url-http-prevent-multibyte-request (= (string-bytes
request)
(length request)))
(error "Multibyte text in HTTP request: %s" request))
Or maybe the solution is something else. But it should be possible to send
latin-1 strings with "æøå" in it.
regards
--
Knut Olav Bøhmer