doedje / jquery.soap

This script uses $.ajax to send a SOAP:Envelope. It can take XML DOM, XML string or JSON as input and the response can be returned as either XML DOM, XML string or JSON too.
352 stars 148 forks source link

Soap call with non-english characters #105

Closed amarbader closed 7 years ago

amarbader commented 7 years ago

Hi,

Calling the soap service is returning a gibberish characters instead of the right ones: The server side is: unnamed

What I am getting in the client side as a response is: untitled1

I tried to change the "Content-Type" in the soap call header request by adding the following: HTTPHeaders: { 'Content-Type': "application/json;charset=ISO-8859-6" }

But this didn't affect the "Request Header": untitled2

I will appreciate for your advice. Thanks, Amar

doedje commented 7 years ago

I did my best to implement a new charset parameter for the $.soap-call but I was unsuccessful... After some googling I found out it is impossible....

Note: The W3C XMLHttpRequest specification dictates that the charset is always UTF-8; specifying another charset will not force the browser to change the encoding.

from the $.ajax api specs

I am sorry...