URLEncode | |||||||
Type | function | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Returns a string that has been transformed so that it can be posted to an HTTP server as a URL. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Parameters |
| ||||||
Example |
| ||||||
Values |
| ||||||
Related | Keyword: URL, character, http, string Command: post Function: textEncode Control Structure: function Glossary: function, hexadecimal, encode, ASCII, return, server | ||||||
Security | network | ||||||
Description | Use the URLEncode function to encode a URL so it can be safely posted to an HTTP server. Letters and numbers (alphanumeric characters) are not transformed by the URLEncode function. The representation used for non-alphanumeric characters is a percent sign followed by two hexadecimal digits. For example, the ASCII value of the character ~ is 126; the hexadecimal equivalent of 126 is 7E. So wherever the character ~ appears in the formString, it is converted to "%7E".
| ||||||
Tags | networking |