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

Re: [Ftpapi] SetError() #73: CCSID conversion failed



According to the manual this error code means "The conversion stopped because of an incomplete character or shift state sequence at the end of the input buffer."

Is it possible that the receiveBuffer.size is incorrect?  Or, whatever process you are using to write the data to the receiveBuffer is not writing it correctly?

Does it work better if you use http_req()?


On 11/18/2020 12:10 AM, Nihat Ezer wrote:

Greetings,

 

Attempting to run the following, i have seen that response is not seen properly as it contains special characters with Unicode decimal codes such as ı ç etc, and gives error message, "SetError() Ö73: CCSID conversion failed: The value specified for the argument is not correct."

 

What am i doing wrong or this could be due to something wrong on the other side, debug or trace file is attached to the mail, can you please advise ?

 

dcl-s peIstekCevap varchar(9999);

dcl-ds receiveBuffer qualified;

   size int(10) inz;

   data char(32767) inz;

end-ds;

 

http_setCCSIDs(1208:1026);

loReturnCode = http_url_post_raw(glUrl

                  : %addr(peIstekCevap)+2

                  : %len(%trim(peIstekCevap))

                  : FD

                  : %paddr(asws_httpVeriyiAl)

                  : HTTP_TIMEOUT

                  : *omit

                  : 'text/xml; charset=UTF-8'

                  : '"http://xxx.com/CoreIns/aMethod"'

 

http_xlatedyn(receiveBuffer.size: %addr(receiveBuffer.data) : TO_EBCDIC: pEbcdic);

 

--

Thank you,

Nihat

 


-- 
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi