URLQueryDecode

URLQueryDecode["string"]

decodes a URL-style query string into a list of key-value rules.

Details and Options

  • The keys and values in the list of rules returned by URLQueryDecode are given as strings.
  • The URL-style query string is taken to be percent-encoded.
  • URLQueryDecode has option CharacterEncoding, giving the encoding to assume for a character in the query string. The default is "UTF-8".
  • URLQueryDecode[URL["string"]] is also supported.

Examples

open allclose all

Basic Examples  (2)

Decode a query string:

In[2]:=
Click for copyable input
Out[2]=

URLQueryDecode automatically threads over lists:

In[1]:=
Click for copyable input
Out[1]=

Scope  (1)

Options  (3)

Applications  (1)

See Also

URLQueryEncode  URLEncode  URLDecode  URLBuild  URLParse

Introduced in 2014
(10.0)
| Updated in 2016
(11.0)