URLDecode
The URLDecode function returns a URL encoded string to its original representation.
This function parallels the Java function java.net.URLDecoder.decode().
Syntax
The URLDecode function
has the following syntax:
String = URLDecode(Expression,[Encoding])Parameters
The URLDecode function
has the following parameters.
Parameter |
Format |
Description |
|---|---|---|
|
String |
The string that you want to decode. |
|
String |
The encoding scheme you want to use. This is
optional. The recommended and default encoding is |
Return value
The decoded string.
Example
The following example shows how to decode a URL encoded string back to its original representation.
ReceivedString = "System.out.println%28%22Hello+World%21%22%29%3B";
OriginalString = URLDecode(ReceivedString, "UTF-8");
Log(OriginalString);This example prints the following message to the policy log:
Parser Log:
System.out.printIn("Hello world!");