The util.Strings class / util.Strings methods |
Converts a string from the current codeset to a URL-encoded string.
util.Strings.urlEncode( source STRING ) RETURNING result STRING
The util.Strings.urlEncode() method converts the character string passed as parameter to a URL-encoded string.
All characters not matching [-_.~a-zA-Z0-9] are "percent encoded": Percent-encoding involves converting those characters to UTF-8 and representing its corresponding byte values by a percent sign ("%") and a pair of hexadecimal digits.
IMPORT util MAIN DISPLAY util.Strings.urlEncode("abcĀ") END MAIN Output: abc%C3%84%E2%82%AC