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:
@@ -156,8 +156,9 @@ class DataBaseMaintenance
|
|||||||
if( isset($dbname) ) {
|
if( isset($dbname) ) {
|
||||||
$this->dbName = $dbname;
|
$this->dbName = $dbname;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->link = mysql_connect($this->host, $this->user, $this->passwd);
|
$this->link = mysql_connect($this->host, $this->user, $this->passwd);
|
||||||
|
@mysql_query("SET NAMES 'utf8';");
|
||||||
if( ! $this->link ) {
|
if( ! $this->link ) {
|
||||||
throw new Exception("Couldn't connect to host {$this->host} with user {$this->user}");
|
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");
|
CLI::logging("> Connecting to system database in '$dbHost'\n");
|
||||||
$link = mysql_connect($dbHost, $dbUser, $dbPass);
|
$link = mysql_connect($dbHost, $dbUser, $dbPass);
|
||||||
|
@mysql_query("SET NAMES 'utf8';");
|
||||||
if (!$link)
|
if (!$link)
|
||||||
throw new Exception('Could not connect to system database: ' . mysql_error());
|
throw new Exception('Could not connect to system database: ' . mysql_error());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user