_DECODEURL$

From QB64 Phoenix Edition Wiki
Revision as of 18:37, 25 November 2024 by RhoSigma (talk | contribs) (Created page with "{{DISPLAYTITLE:_DECODEURL$}} The '''_DECODEURL$''' function is the counterpart for _ENCODEURL$, it returns the decoded plain text URL of the given encoded URL. {{PageSyntax}} : result$ = _DECODEURL$({{Parameter|url$}}) {{PageParameters}} * {{Parameter|url$}} is the URL to decode as variable or literal STRING. {{PageDescription}} * URL decoding may be required when parsing downloaded files for additional links and retrieving its add...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The _DECODEURL$ function is the counterpart for _ENCODEURL$, it returns the decoded plain text URL of the given encoded URL.


Syntax

result$ = _DECODEURL$(url$)


Parameters

  • url$ is the URL to decode as variable or literal STRING.


Description

  • URL decoding may be required when parsing downloaded files for additional links and retrieving its addresses.
  • As it is possible, although not recommended, that a URL was encoded multiple times, this function can be called multiple times too until all encoded chars are resolved again, i.e. until no more percent (%) chars with a following 2 digit hex number exist in the URL.
  • It is safe to call this fucntion with an unencoded URL, it will be simply returned as is.
  • Note that this function performs no validation of the given URL, it expects a valid URL to be given and just does the decoding.


Availability


See also



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link