From: Benjamin Mako Hill Date: Tue, 8 Nov 2011 15:21:16 +0000 (-0500) Subject: Merge branch 'mysql4-utf8' of git://github.com/takuya-o/scuttle X-Git-Url: https://projects.mako.cc/source/scuttle/commitdiff_plain/2c087c3ce497ccbbf5860f710168e563c7b7cce7?hp=1902126441099aeb0f6aefb4b7f91a4c88ab7f6e Merge branch 'mysql4-utf8' of git://github.com/takuya-o/scuttle --- 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; } }