" . __("This script will convert your Tiny Tiny RSS database to UTF-8. Depending on current database charset you may experience data corruption (lost accent characters, etc.). After update, you'll have to set MYSQL_CHARSET option in config.php to 'utf8'.") . "
"; print ""; } else if ($op == "do") { print "".__("Converting database...")."
"; db_query($link, "SET FOREIGN_KEY_CHECKS=0"); $result = db_query($link, "SHOW TABLES LIKE 'ttrss%'"); while ($line = db_fetch_assoc($result)) { $vals = array_values($line); $table = $vals[0]; $query = "ALTER TABLE $table CONVERT TO CHARACTER SET 'utf8'"; print "$query
"; db_query($link, $query); } db_query($link, "SET FOREIGN_KEY_CHECKS=1"); print ""; } ?>