URLEncoder()
Syntax
Result$ = URLEncoder(URL$ [, Format])Description
Returns the URL$ encoded to the HTTP format.
Parameters
URL$ The URL to encode. Format (optional) The format of the string before encoding it. It can be one of the following value: #PB_UTF8 (default) #PB_Ascii
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.purebasic.com/test with space.php3") ; Will print "http://www.purebasic.com/test%20with%20space.php3"
See Also
URLDecoder()
Supported OS
All