From: Takuya Ono Date: Tue, 14 Jun 2011 17:38:52 +0000 (+0900) Subject: The contents of mysql4 database must be stored in right utf-8. X-Git-Url: https://projects.mako.cc/source/scuttle/commitdiff_plain/0d9eb4c5f0536ae90134f2a436da71f005cec355?ds=inline The contents of mysql4 database must be stored in right utf-8. see: http://sourceforge.net/tracker/?func=detail&aid=2215940&group_id=134378&atid=729862 --- diff --git a/includes/db/mysql4.php b/includes/db/mysql4.php index 0639518..f074e19 100644 --- a/includes/db/mysql4.php +++ b/includes/db/mysql4.php @@ -44,6 +44,8 @@ class sql_db { if (@mysql_select_db($this->dbname)) { + #Set utf-8 + mysql_query('SET CHARACTER SET utf8', $this->db_connect_id); return $this->db_connect_id; } }