Page 1 of 1

hb_urlencode

PostPosted: Wed Apr 14, 2021 9:35 am
by Otto
Dear Antonio,

I have a question about hb_urlencode ().

I can't find this function in Harbour.

It is available in mod harbour. Shouldn't it be called
HB_FUNC( AP_URLDECODE )?
Is there also a urlencode function?

Best regards,
Otto

Re: hb_urlencode

PostPosted: Wed Apr 14, 2021 10:28 am
by Antonio Linares
Dear Otto,

Here it is:
https://github.com/harbour/core/blob/d407898675b14fbf9b10cd2e23723e9a522686e5/contrib/hbtip/encurlc.c

We renamed TIP_URLDECODE() into HB_URLDECODE() in mod_harbour to remember its origin:
https://github.com/FiveTechSoft/mod_harbour/blob/master/source/url.c

Giancarlo also provides a TIP_URLENCODE() but we have not needed it in mod_harbour yet