Using utf8_unicode_ci instead of utf8_general_ci
authorAlexander Ebert <ebert@woltlab.com>
Wed, 13 Feb 2013 14:34:07 +0000 (15:34 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 13 Feb 2013 14:34:07 +0000 (15:34 +0100)
Fixes #1105

wcfsetup/install/files/lib/system/database/editor/MySQLDatabaseEditor.class.php

index 135099dc3058b7aeab89fcb70885cb5659ef55cc..b7b2d92b3309f0763448472dca90d29ebd0daa7e 100644 (file)
@@ -92,7 +92,7 @@ class MySQLDatabaseEditor extends DatabaseEditor {
                                ".$columnDefinition."
                                ".(!empty($indexDefinition) ? ',' : '')."
                                ".$indexDefinition."
-                       ) ENGINE=".($hasFulltextIndex ? 'MyISAM' : 'InnoDB')." DEFAULT CHARSET=utf8";
+                       ) ENGINE=".($hasFulltextIndex ? 'MyISAM' : 'InnoDB')." DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci";
                $statement = $this->dbObj->prepareStatement($sql);
                $statement->execute();
        }