Int byteLength(String s)
Arguments
s: The string to measure
Usage
Get the length in bytes of a String (allowing for multi-byte characters in a UTF-8 encoding).
str = "Hello multibyte: "+Char(192);
l = length(str); // 18
ml = byteLength(str); // 19
s: The string to measureGet the length in bytes of a String (allowing for multi-byte characters in a UTF-8 encoding).
str = "Hello multibyte: "+Char(192);
l = length(str); // 18
ml = byteLength(str); // 19