I have to redesign a class where (amongst other things) UTF-8 strings are double-encoded wrongly:
$string = iconv(\'ISO-8859-1\', \'UTF-8\', $string); : $str
MySQL provides a regexp match but no regexp replace, so you're usually better off iterating through each row in php, converting as needed, and updating the row if it has been changed.