I've got a database with a bunch of broken utf8 characters scattered across several tables. The list of characters isn't very extensive AFAIK (áéíúóÁÉÍÓÚÑñ)
Fixing a given table is very straightforward
update orderItem set itemName=replace(itemName,'á','á');
But I can't get a way of detecting the broken characters. If I do something like
SELECT * FROM TABLE WHERE field LIKE "%Ã%";
I get nearly all the fields because of the collation (Ã=a). All broken characters so far start with an "Ã". The database is in spanish so this particular character isn't used
The list of broken chars I've got so far is
á = á
é = é
Ã- = í
ó = ó
ñ = ñ
á = Á
Any idea of how to make this SELECT to work as intended? (a binary search or something like that)