The IDLnetURL::Decode static function method decodes a string using "percent encoding" to remove escaped characters. This method is typically used to decode the value field from HTTP get, put and post requests.
Example
str = 'My%20JSON%20string%20is%3A%20%7B%22key%22%3A%22value%22%7D'
value = IDLnetURL.URLDecode(str)
PRINT, value
IDL prints:
My JSON string is: {"key":"value"}
Syntax
Result = Obj->[IDLnetURL::]URLDecode( String )
Return Value
The result is a string containing the decoded value.
Arguments
String
Set this argument to the string to be decoded.
Keywords
None.
Version History
See Also
IDLnetURL::URLEncode, IDL_BASE64