Ns urldecode
Jump to navigation
Jump to search
Man page: http://aolserver.com/docs/tcl/ns_urldecode.html
NAME
- ns_urldecode - URL decoding
SYNOPSIS
- ns_urldecode ?-charset charset? data
DESCRIPTION
- This command decodes a string according to the rules for URL encoding defined in RFC 1738, Uniform Resource Locators (URL). Essentially, each non-alphanumeric byte is converted to its hexadecimal representation, prepended with a percent sign.
- The optional -charset charset parameter defines the character set of the encoded string. If not specified, the default is "utf-8".
EXAMPLES
% ns_urldecode http%3a%2f%2fwww%2eaolserver%2ecom%2f http://www.aolserver.com/
% set data [[ns_urlencode [format %c 0xe9]]] ;# 0xe9 is the iso8859-1 for lowercase accented 'e' %c3%a9 % string length ns_urldecode -charset utf-8 $data 1
% string length ns_urldecode -charset iso8859-1 $data 2
SEE ALSO