URLEncode changes strings so that they are safe for including in URLs. For instance, a space character is encoded to %20. This is a % symbol indicating an encoded character, followed by the ASCII value of the character in hex.
This version encodes all values into upper-case, maintaining Twitter compatibility.
String encoded = URLencode("Encode this string please&£$");
| Attachment | Size |
|---|---|
| URLEncode.zip | 1.4 KB |