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
I found the following approach simpler:
mysqldump -h DB_HOST -u DB_USER -p --skip-set-charset --default-character-set=latin1 DB_NAME > DB_NAME-dump.sql
Then drop all tables and re-import with following command:
mysql -h DB_HOST -u DB_USER -p --default-character-set=utf8 DB_NAME < DB_NAME-dump.sql
Tip was found at this URL: http://blog.hno3.org/2010/04/22/fixing-double-encoded-utf-8-data-in-mysql/