[SOLVED] Empty string returned from $decode("URL", str)
Author: richard.gill@agfa.com (richard.gill)
Hello all I'm handling the query string from a web context, and having issues with the URL encoding. I have in the URL this QS:
I get the QUERY_STRING item (of the SERVERVARIABLES item of $webinfo("WEBSERVERCONTEXT")) and want to use it from my code. All works seamlessly, unless the QS is URL encoded :
In this case I want the decoded characters. So I use the $decode function with "URL", and all works perfectly again :
But then passing a non URL encoded string to $decode makes it return an empty string! How can that be managed? Kind Regards, Richard