[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using http_xlate and special characters
Hi Wolfgang,
You're getting %2B because the HTTP server is sending you URL encoded
data. If you look on an ASCII chart, you'll see that hex 2B is the ASCII
value for the + symbol.
HTTPAPI does not currently contain a URL decode routine (it has an
encoder, but not a decoder). This is the first time I can remember
someone wanting to URL decode something with HTTPAPI.
But, at any rate, it's not a CCSID problem. The data is being
translated exactly as it should be (as far as I can tell, anyway) and
there doesn't seem to be any problems with HTTPAPI. You're receiving
exactly what the server is sending you.
you just need to write a routine to decode it.
wolfgang.tigges.extern@xxxxxxxxxxx wrote:
> Hello @ll
> it works fine - great!!! thanks for previous help.
>
> you guess - i have another problem: i translate my response
>
> c eval rc = http_url_post_raw(
> c 'https://' + %trim(W#ip_adresse) + ':' +
> c %trim(W#ip_port)
> c : %addr(W#request)
> c : %len(%trim(W#request))
> c : 1
> c : %paddr('INCOMING'))
> C* convert the data we just received to EBCDIC
> c if retlen > 1
> c callp http_xlate(retlen: retdata: TO_EBCDIC)
> c endif
>
> and i get a character '%2B' instead of the expected '+' (from URL Coding
> with ISO-8859-1-character set)
>
> perhaps its pending on CCSID and/or CHRID, but there must be a parameter to
> customize different character sets(?)
>
> our system values are:
> Systemwert . . . . . . : QCCSID
> ID des codierten
> Zeichensatzes (CCSID): 65535 1-65535
>
> Systemwert . . . . . . : QCHRID
> Zeichensatz-ID . . . . : 697
> Code Page . . . . . . : 273
>
> thx
> wolfgang
>
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------