FAQ : Frequently Asked Questions | ||
|
37. |
Q:
For some reasons, in a CGI I need to retrieve the
query string. That I do retrieving the environment
variable QUERY_STRING. The point here is that the query string may contain "escaped sequences" such as: "%24" instead of "$" "%5C" instead of "\" "%26" instead of "&" "%2B" instead of "+" etc. How can I convert the escaped sequences to their corresponding characters and the other way around? A: An "escaped sequence" is the ASCII hexadecimal representation of a character preceeded by character %.
Javascript functions escape() and unescape() cal also be used to "escape" or "unescape" ASCII characters. Examples:
|