Merge branch 'mysql4-utf8' of git://github.com/takuya-o/scuttle
authorBenjamin Mako Hill <mako@atdot.cc>
Tue, 8 Nov 2011 15:21:16 +0000 (10:21 -0500)
committerBenjamin Mako Hill <mako@atdot.cc>
Tue, 8 Nov 2011 15:21:16 +0000 (10:21 -0500)
includes/db/mysql4.php

index 063951816d23adb9c02a07722d450da0d02d390c..f074e19e76be93b649e37e2cc8950d9430833f19 100644 (file)
@@ -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;
                        }
                }

Benjamin Mako Hill || Want to submit a patch?