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

@@ -156,8 +156,9 @@ class DataBaseMaintenance
if( isset($dbname) ) {
$this->dbName = $dbname;
}
$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}");
}