Since not all platforms guarantee that
String always uses UTF-8 encoding, you
can use this crossplatform API to perform operations on such strings.
String.charCodeAt but uses the UTF8 character position.
Decode an UTF8 string back to an ISO string. Throw an exception if a given UTF8 character is not supported by the decoder.
chars function for each UTF8 char of the string.
This is similar to
String.substr but the
len parts are considering UTF8 characters.