Credits Overview Plotting Styles Commands Terminals

strlen

strlen("string") returns the number of characters in a string taking into account the current encoding. If the current encoding supports multibyte characters (SJIS UTF8), this may be less than the number of bytes in the string. If the string contains multibyte UTF8 characters but the current encoding is set to something other than UTF8, strlen("utf8string") will return a value that is larger than the actual number of characters.