This function is used to decode a URL (uniform representation of special characters in characters which are specific to the specified encoding).
Context
Java client.
Web client.
Cloud client.
Java server.
Parameters
ALPHA(n) |
URL |
Initial URL. |
ALPHA(n) |
Encoding |
URL encoding If set to *BLANK, it assumes the UTF-8 encoding. |
ALPHA(n) |
DecodedURL |
Decoded URL. |
ALPHA(n) |
ValueLgth |
DecodedURL variable length. |
NUM_BIN_4 |
ReturnCode |
Operation return code: 0: Operation completed successfully. -1: in the case of a decoding error. -2: the provided variable is too small for storing the result. |
For example
URL |
= ' http:mondomain.fr?user=Karine%20B%c3%a9ranger ' |
Enc |
= 'UTF-8' |
/* returned value: http:mondomain.fr?user=Karine Béranger
CALL_DLL 'VATOOLBX.DLL' 'VaToolBxJavaDecodeURL' URL Enc URL2 256 ReturnCode