diff --git a/module/install/model.php b/module/install/model.php index db20fbbbd0..7ecc152b44 100644 --- a/module/install/model.php +++ b/module/install/model.php @@ -123,8 +123,9 @@ class installModel extends model { $this->dbh->useDB($this->config->db->name); - $dbFile = $this->app->getAppRoot() . 'db' . DS . 'zentao.sql'; - $tables = explode(';', file_get_contents($dbFile)); + $dbCharset = $this->dbh->getDatabaseCharsetAndCollation($this->config->db->name); + $dbFile = $this->app->getAppRoot() . 'db' . DS . 'zentao.sql'; + $tables = explode(';', file_get_contents($dbFile)); foreach($tables as $table) {