mblen
mblen(bytestr[, charset])
This function returns the number of bytes in bytestr that form whole characters in the character set specified by charset, which may be a single-byte character set (SBCS), multi-byte character set (MBCS), or double-byte character set (DBCS). The length returned should be passed to mbstoucs to convert the string to Unicode. charset is one of the following strings:
• iso8859-1
• iso8859-2
• iso8859-3
• iso8859-4
• iso8859-5
• iso8859-7
• iso8859-8
• iso8859-9
• ps_ascii
• ps_symbol
• jeuc
• sjis
• big5hku
• gb2312
• koi8
• ksc5601
• utf-8
• Unicode
If charset is not specified, the system character set is assumed.