URLDecode
Decodes a URL-encoded string.
Method Signature
Arguments
Argument
Type
Required
Description
Default
string
any
true
The URL-encoded string to decode.
charset
string
false
The charset to use when decoding the string. Defaults to UTF-8.
UTF-8
Examples
Simple urlDecode() example
Shows how it takes an input of: %21 and returns: !
Result: !
Basic urlDecode() usage
In this example we demonstrate taking a URL encoded message passed on the request context and displaying it decoded.
urlDecode() in obfuscation
In this example we demonstrate url encoding a password before it is encrypted, and then decoding it after it is decrypted.
Result: %2418%24f%5E%24XlTe41 : : %2418%24f%5E%24XlTe41 : $18$f^$XlTe41
urlDecode() usage as a member function
In this example we demonstrate taking a URL encoded message passed on the request context and displaying it decoded using the urlDecode() member function.
Additional Examples
Related
Last updated
Was this helpful?