]> projects.mako.cc - scuttle/blobdiff - includes/db/mysql4.php
Merge branch 'autocomplete-tags'
[scuttle] / includes / db / mysql4.php
index 063951816d23adb9c02a07722d450da0d02d390c..f074e19e76be93b649e37e2cc8950d9430833f19 100644 (file)
@@ -44,6 +44,8 @@ class sql_db
                {
                        if (@mysql_select_db($this->dbname))
                        {
                {
                        if (@mysql_select_db($this->dbname))
                        {
+                               #Set utf-8
+                               mysql_query('SET CHARACTER SET utf8', $this->db_connect_id);
                                return $this->db_connect_id;
                        }
                }
                                return $this->db_connect_id;
                        }
                }

Benjamin Mako Hill || Want to submit a patch?