[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about http_url_post_raw2()
Mario,
You are telling the open() API to create the file in EBCDIC, but you are
telling me that the data is UTF-8. I don't understand why you are doing
that?
http_url_post_raw2() never translates data. So if you tell the open()
data that it should use EBCDIC, but the data is UTF-8, the file will be
marked with the wrong CCSID, and that will confuse any program that
relies on the CCSID.
-SK
On 10/11/2016 5:50 AM, Mario Martoriello wrote:
Hi all
is possible that http_url_post_raw2() does some traslantion for the
received data? If I use this function and then write the incoming
data(that should be encoding in utf-8) to a stream file, opened with
these instruction
fd2 = open('/tmp/logmm.log'
: O_CREAT + O_TRUNC + O_WRONLY
: S_IRWXU + S_IRWXG + S_IRWXO);
how are they written in utf-8 or ansi?
Thanks in advance
Mario Martoriello
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------