IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page


void CGI_UrlDecode ( char *  dst,
const char *  src 
)

Decodes a URL string.

Parameters:
[out] dst Output Parameter: Pointer to the buffer the decoded string is to be stored in; must be large enough.
[in] src URL-encoded string that is to be decoded.
Returns:
Nothing.
Note:
In URL-encoded strings all non-alphanumerical characters except '-', '_' and '.' are encoded as a hexadecimal value preceded by a percent sign (e.g. 26 for the ampersand). The space character is replaced by a plus sign. The text "Test 123 .&%" (without the quotes) would be encoded as "Test+123+.%26%25". This kind of encoding is for example used to pass arguments to a CGI page with the URL.

You can pass the same pointer as src and dst parameter. The encoded string will in this case be overwritten with the decoded string.

This function is used internally when CGI_GetArgument() is called.
Since:
SC2x3 V1.00 - CLIB V1.00
See also:
CGI_UrlEncode()





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Thu Jan 26 16:21:36 2017 by Doxygen 1.6.1