Answer the question
In order to leave comments, you need to log in
How to determine "crazy" by means of MYSQL/PHP?
Hello.
There is MySQL and an application in UTF-8.
There is a table (suppose user: id, name) that contains a large number of records, the values of which are obtained from third-party sources.
It happens that such sources change their encoding, suppose to CP1251, but I still continue to write such values (without prior conversion), for example:
РњС‹ Р'ыбираем
Мало Мне
Answer the question
In order to leave comments, you need to log in
As a result, as planned, I collected a list of the most popular substrings, I did it:
$chars = [
'Ђ',
'Рњ',
'Р°',
'Рµ',
'Рџ',
'Р№',
'СЏ',
'Р‘',
'Рђ',
'Р»',
'Рї',
'С€',
'¶',
'Р”',
'‡',
'Р›',
'Р•',
];
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question