I have a mysql database that is UTF8 encoded. However, due to some previous conversion issues that I inherited, certain strings have been saved incorrectly to the database.
For example, £ should be saved as £, but in many places its been saved as something like £.
I have been able to track down all the records in the table that have been incorrectly encoded. Whats the easiest way for me to remove all the unncessary characters from this varchar database field?
I've tried preg_replace in php, but this doesnt seem to actually do anything.
return preg_replace("[^A-Za-z0-9£]", "", $string);