There is a string ON CYRILLES, extracted from the database, which must be truncated by n characters. The collation is utf8-general-ci. Utf8 encoding. I am writing code:
echo substr($string, 0, 20);
Displays 10 characters. Logically, arguing one character is taken for two, BUT "space" - for one.
What to do???