Convert the character set of a mysql database
tisdag 19 februari, 2008 kl. 2:32 e mThis php-script is for converting content of all tables of a mysql database to another character set. In this case i convert everything (latin 8859-1) to utf8_swedish_ci. The same action can be made from the shell with mysqldump and iconv, but the programmer in me prefers the-php-way. As always, tweaks and comments are very helpful.
<?
set_time_limit(0);
$link […]
