urlencode(
URL
)

The urlencode( function converts text into a legal URL (by converting spaces into %20).


Parameters

This function has one parameter:

url – text you want to make into a legal URL.


Description

This function converts text into a legal URL (by converting spaces into %20).

urlencode("now is the time") ☞ now%20is%20the%20time

Depending on your application, you may want to encode additional characters beyond the space. Using the percentescape( function, you can easily escape whatever characters you want. The RFC 2396 standard discusses different options for escaping characters when creating a URL.


See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0