URLDecoder()

Syntax

Result$ = URLDecoder(URL$ [, Format])
Description
Returns a decoded URL$ which has been encoded with the HTTP format.

Parameters

URL$ The URL to decode. To encode an URL, use URLEncoder().
Format (optional) The format of the URL encoding. It can be one of the following value:
  #PB_UTF8  (default)
  #PB_Ascii

Return value

Returns the decoded URL.

Remarks

A URL$ may not contain certain characters such as: tab, space, accent letter etc., therefore these characters must be encoded, which basically involves using "%" as an escape character. If the URL$ is not in an encoded format, this function will have no effect on the given "URL$" and the return-value of that "URL$" will remain unchanged.

Example

  Debug URLDecoder("http://www.purebasic.com/test%20with%20space.php3")
  ; Will print "http://www.purebasic.com/test with space.php3"

See Also

URLEncoder()

Supported OS

All

<- SetURLPart() - Http Index - URLEncoder() ->