URLEncoder()

Syntax

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

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.purebasic.com/test with space.php3")
  ; Will print "http://www.purebasic.com/test%20with%20space.php3"
To convert an encoded URL back to a unencoded format, use URLDecoder()

This command can be very useful to convert a URL when writing a CGI program.

Supported OS

All

<- URLDecoder() - Http Index