Hi, I have multi database with 500+ tables. Some text is not correctly formatted as they are show this characters: É™lavÉ™ et which have to be: ÆlavÉ™ et Ümumi which have to be: Ümumi So i need code for database or as php to convert such string into correct format, database collation is OK just need to convert in rows. I will make loop for all tables and row but I need correct code for to convert such strings into correct unicode.
try to export the mysql database, open the sql file with any editor, search for the 'encoding line' usually at the end of table creation query and like this ' ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;' PHP: modify it to UTF8 if its not and import the data again hope its what you looking for Thanks
all of them are UTF8, I have tried to use CONVERT function but it work not for all databases. Is there are any other solution ?
check out these: http://climbtothestars.org/archives/2004/07/18/converting-mysql-database-contents-to-utf-8/ http://stackoverflow.com/questions/105572/a-script-to-change-all-tables-and-fields-to-the-utf-8-bin-collation-in-mysql http://forum.whmcs.com/showthread.php?t=21865 Code (markup): Above all, be sure to make backups beforehand