У меня есть база данных с кучей сломанных символов utf8, разбросанных по нескольким таблицам. Список персонажей не очень обширен AFAIK (áéíúóÁÉÍÓÚÑ)
Фиксация данной таблицы очень проста
update orderItem set itemName=replace(itemName,'á','á');
Но я не могу найти способ обнаружения сломанных персонажей. Если я сделаю что-то вроде
SELECT * FROM TABLE WHERE field LIKE "%Ã%";
Я получаю почти все поля из-за сортировки (Ã = a). Все сломанные персонажи до сих пор начинаются с "Ã". База данных находится на испанском языке, поэтому этот конкретный символ не используется
Список сломанных символов, которые я получил до сих пор,
á = á
é = é
Ã- = í
ó = ó
ñ = ñ
á = Á
Любая идея, как заставить этот SELECT работать по назначению? (двоичный поиск или что-то в этом роде)