URLEncoder()

Syntax

Result$ = URLEncoder(URL$)
Description
Returns the URL$ encoded to the HTTP format.

Parameters

URL$ The URL to encode.

Return value

Returns the encoded URL. To convert an encoded URL back to a unencoded format, use URLDecoder()

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.

Example

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

See Also

URLDecoder()

Supported OS

All

<- URLDecoder() - Http Index