Gizmo, as far as I understood you, you recommended to use UTF-8 encoding. I followed this recommendation and
it didn't solve the problem. The bug is still there. I don't know, maybe it has to do with PHP version. In fact, it created even more problems because the database that I have is in windows-1251 encoding and it is not readable under UTF-8 encoding. Not to mention that users are expecting standard windows-1251 encoding.
Сложный
Yes, that's what I used to post Russian characters on this board. I also tried to enter the string in question like this code in language editor. The other way to enter the string was just to type the string in using Russian keybord layout. Neither way solved the problem.