[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ISO-8859-1 and http_url_get_xml




I have a small challenge - i dont know how small ;-))
but -  i use http_url_get_xml to send a request  to a server - but the
data I get is running thru DCXLATE and not the ICONV procedure
giving me the DB char (ex. זרו) a wrong value - ( xlate uses ascii to
ebcdic  )

iconv() is the default option in the current versions of HTTPAPI, I suggest you upgrade.



The result from the server is <?xml version="1.0" encoding="ISO-8859-1"?>
the data shows the "right" values in a browser

Hmmm... HTTPAPI doesn't distinguish between the XML document and the data transmitted in the HTTP protocol. Upgrading to the current version of HTTPAPI will solve your immediate problem since it uses ISO-8859-1 as the default for both streams.


However, if the XML document was something besides ISO-8859-1, you'd still run into problems since HTTPAPI doesn't do separate translation of that data from the HTTP protocol data.

Let me think about that...