BUG 8943 The Chinese charactors can't be backuped and restored... SOLVED
- The Chinese characters do not display correctly. - Format was changed UTF-8 to Backup and restore.
This commit is contained in:
@@ -158,6 +158,7 @@ class DataBaseMaintenance
|
||||
}
|
||||
|
||||
$this->link = mysql_connect($this->host, $this->user, $this->passwd);
|
||||
@mysql_query("SET NAMES 'utf8';");
|
||||
if( ! $this->link ) {
|
||||
throw new Exception("Couldn't connect to host {$this->host} with user {$this->user}");
|
||||
}
|
||||
|
||||
@@ -1038,6 +1038,7 @@ class workspaceTools {
|
||||
|
||||
CLI::logging("> Connecting to system database in '$dbHost'\n");
|
||||
$link = mysql_connect($dbHost, $dbUser, $dbPass);
|
||||
@mysql_query("SET NAMES 'utf8';");
|
||||
if (!$link)
|
||||
throw new Exception('Could not connect to system database: ' . mysql_error());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user