I hope you can help me. My problem: I'm programming a web api using http_xxx functions. My service client are running well if encoding is utf-8. Now I have to communicate with a service that is passing back data using enconding iso-889-1. When i try to parse the response using xmltable i get SQLState: SQ16168, which means that my encoding is wrong, which is obvious.
I then changed the encoding declaration in the response like this: set Response_payload = replace(Response_Payload, 'encoding="ISO-8859-1', 'encoding="utf-8');
Then I parsed the resonse using xmltable(). success. But there is one caveat: As soon as there are special characters in the response replacing the encoding declaration fails with error SQL0191: A mixed data value is improperly formed.
I learned that all http_xxx funcions use the axis api and this api passses back data encodes with utf-8.
Does anyone know of a way to override this behavior or of any other solution to fix this problem?
Any help would be appreciated!
------------------------------
Klaus-Peter Luttkus
------------------------------
#SQL