Comment Comment by njuw In PHP grapheme_strlen achieves what you're describing: https://3v4l.org/HPOb3 parent njuw 6 years ago