[erlang-questions] soap and utf8 problem
semmit mondo
semmitmondo@REDACTED
Fri Jun 10 13:14:16 CEST 2016
Hi,
I use this Erlang SOAP library
https://github.com/bet365/soap
from an Elixir application. Everything works fine up until I try to
send strings with accents (or other unusal characters) in it.
This is what I get:
{:fault, 500,
[{'connection', 'close'}, {'date', 'Fri, 10 Jun 2016 10:18:53 GMT'},
{'server', 'Apache/2.4.18 (Unix) OpenSSL/1.0.2g'}, {'content-length', '278'},
{'content-type', 'text/xml; charset=utf-8'}], [],
{:soap_fault_1_1,
{:faultcode, 'http://schemas.xmlsoap.org/soap/envelope/', 'Client',
:undefined}, 'Bad Request', :undefined, []}, [],
"<?xml version="1.0" encoding="UTF-8"?>n<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><S
OAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>Bad Request</faultstring></SOAP-ENV:Fault></SOAP
-ENV:Body></SOAP-ENV:Envelope>n"}
...and the way I convert utf8 binaries to char lists is simply using
the '#{some_utf8_binary_string}' Elixir syntax. (I believe this is the
same as to_char_list(some_utf8_binary).
Can anybody give me at least tips what to check and how to solve this issue?
More information about the erlang-questions
mailing list