Page 4 of 7
String methods
String-related methods
Base64.Encode(str)
Since 2.3.2 Base64-encodes a string
- str (required): String to encode
Base64.Decode(str)
Since 2.3.2 Base64-decodes a string
- str (required): String to decode
setL18N(key, value)
Since 2.3.1 Sets the key for localized text.
- key (required): String identifier
- value (required): Localized text
getL18N(key, args)
Since 2.3.1 Returns the localized text for a given key- key (required): String identifier
- args (optional): Array of values to replace sprintf
specifiers
urlencode(str)
Since 2.3.2 JavaScript's equivalent to PHP's rawurlencode.
- str (required): String to encode
urldecode(str)
Since 2.3.2 JavaScript's equivalent to PHP's rawurldecode.
- str (required): String to decode
UTF8.Encode(str)
Since 2.3.1 UTF8-encodes a string if it isn't already encoded.
- str (required): String to encode
UTF8.Decode(str)
Since 2.3.1 UTF8-decodes a string
- str (required): String to decode



