--- /tmp/drupal/includes/database.mysql.inc	2005-12-07 23:17:27.000000000 +0800
+++ includes/database.mysql.inc	2005-12-10 00:50:04.171173377 +0800
@@ -58,6 +58,13 @@
 <p>For more help, see the <a href="http://drupal.org/node/258">Installation and upgrading handbook</a>. If you are unsure what these terms mean you should probably contact your hosting provider.</p>');
     exit;
   }
+  mysql_query('SET NAMES "UTF8"');
+  mysql_query("SET collation_connection='utf8_general_ci'");
+  mysql_query("SET collation_server='utf8_general_ci'");
+  mysql_query("SET character_set_client='utf8'");
+  mysql_query("SET character_set_connection='utf8'");
+  mysql_query("SET character_set_results='utf8'");
+  mysql_query("SET character_set_server='utf8'");
 
   if (!mysql_select_db(substr($url['path'], 1))) {
     drupal_maintenance_theme();
