You're right, the correlation between visual length and the actual number of characters is weak, and maybe only font dependent...
But when I print these strings with both chinese and ASCII characters using the mysql command (SELECT * FROM...), it prints an array on stdout and is absolutely not confused with the visual and character lengths.
That's why I think the solution must exist ^_^*
In reply to Re^3: The “real length" of UTF8 strings
by Anonymous Monk
in thread The “real length" of UTF8 strings
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |