Difference between revisions of "Ns parsequery"
		
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
		
		
		
		
		
	
|  (fixed markup of sample code) | |||
| (One intermediate revision by one other user not shown) | |||
| Line 13: | Line 13: | ||
| '''DESCRIPTION''' | '''DESCRIPTION''' | ||
| − | : This command parses the specified ''querystring'' into an [[ns_set]], which is returned.  The keys and values will be decoded. | + | : This command parses the specified ''querystring'' into an [[ns_set]], which is returned.  The keys and values will be decoded.  No character encoding conversion to UTF is performed. | 
| '''EXAMPLES''' | '''EXAMPLES''' | ||
| Line 23: | Line 23: | ||
|      msg {Hello World!} a b a b c d |      msg {Hello World!} a b a b c d | ||
| − | + | [[Category:Documentation]] [[Category:Core Tcl API]] | |
| − | |||
| − | [[Category Documentation]]  | ||
Latest revision as of 01:11, 11 October 2009
Man page: http://aolserver.com/docs/tcl/ns_parsequery.html
NAME
- ns_parsequery - Parse a URL query string into an ns_set.
SYNOPSIS
- ns_parsequery querystring
DESCRIPTION
- This command parses the specified querystring into an ns_set, which is returned. The keys and values will be decoded. No character encoding conversion to UTF is performed.
EXAMPLES
% set s [ns_parsequery "msg=Hello+World%21&a=b&a=b&c=d"] d0
   % ns_set array $s
   msg {Hello World!} a b a b c d
