In the MySQL documentation the string function REPLACE()
is said to be "multi-byte safe". I have problems working with my Russian charset.
SELECT REPLACE('оофо', 'о', '*'); -- "**ф*", everything is correct
SELECT REPLACE('оофоо', 'о', '*'); -- "**фоо", NOT CORRECT
Where should I look for the source of the problem?
Additional information:
OS - Windows 7 (Russian), SELECT CHARSET('оофоо'); -- "utf8", SELECT LENGTH('оофоо'); -- "6".