Fixed character set to UTF8.
authorLadislav Láska <laska@kam.mff.cuni.cz>
Wed, 22 Jun 2011 19:35:18 +0000 (21:35 +0200)
committerLadislav Láska <laska@kam.mff.cuni.cz>
Wed, 22 Jun 2011 19:35:18 +0000 (21:35 +0200)
classes/database.php

index 5520a4c5dc194d7330b78a8c73e0ed6fc21e8278..6bf26c9d1a5eb3af71ae8cb249abb37c15f6b086 100644 (file)
@@ -86,6 +86,7 @@ class DB {
                        $conf['mysql_password']) or die(tr("Database connection died.")."\n".mysql_error());
 
                mysql_select_db($conf['mysql_database'], self::$handle);
+               mysql_query("SET NAMES utf8;", self::$handle);
 
                return self::$handle;
        }