Encodes a URL string.
- The text to encode.
This function encodes the text so that it can be safely used in a URL by substituting special character combinations for certain reserved characters, such as '&' and '=', as well as space. The function is aware of international characters and escapes them using UTF-8, which most sites expect in the URL.
URLEncode("email@example.com")returns the text value "test%40email.com".