Returns the decoded form of a string that was encoded using urlencode or similar way ( for example for posting to an HTTP server).
URLDecode("A+B%2F1+2") -- returns "A B/1 2"
put URLDecode(field "Test URL") after URLToCheck
Use the URLDecode function to decode a URL that has been sent by another system.
When the URLDecode function encounters a percent sign "%", it treats the next two characters as hexadecimal digits. (If one of the characters is not a hexadecimal digit, it's treated as a zero.) The number is converted to its character equivalent, using the character set currently in use.
put urlencode("Müller") = M%FCller
put urlencode(textEncode("Димитрий","UTF8")) = %D0%94%D0%B8%D0%BC%D0%B8%D1%82%D1%80%D0%B8%D0%B9
put urldecode("M%FCller") = Müller
put textdecode(urldecode("%D0%94%D0%B8%D0%BC%D0%B8%D1%82%D1%80%D0%B8%D0%B9"),"UTF8") = Димитрий
- formString (string):
- Returns:The URLDecode function returns the formString with plus signs "+" converted to spaces and characters in the form %NNconverted to the ASCII equivalent of the hexadecimal number NN.