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:
Marco Antonio Nina
2012-07-23 17:35:54 -04:00
parent d2e823f028
commit 7341e7b683
2 changed files with 3 additions and 1 deletions

View File

@@ -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}");
}

View File

@@ -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());