La gestion des bases en UTF8 sera au programme de la prochaine version

This commit is contained in:
Laurent Destailleur
2007-12-21 19:27:57 +00:00
parent 76f034ded6
commit 7b27328df6
2 changed files with 15 additions and 13 deletions

View File

@@ -158,13 +158,6 @@ class DoliDb
$this->db = $this->connect($host, $user, $pass, $name, $newlink);
if ($this->db)
{
// Si client connect<63> avec charset different de celui de la base Dolibarr
// (La base Dolibarr a <20>t<EFBFBD> forc<72>e en this->forcecharset <20> l'install)
if (mysql_client_encoding ( $this->db ) != $this->forcecharset)
{
$this->query("SET NAMES '".$this->forcecharset."'", $this->db);
$this->query("SET CHARACTER SET ". $this->forcecharset);
}
$this->connected = 1;
$this->ok = 1;
}
@@ -185,6 +178,14 @@ class DoliDb
$this->database_selected = 1;
$this->database_name = $name;
$this->ok = 1;
// Si client connect<63> avec charset different de celui de la base Dolibarr
// (La base Dolibarr a <20>t<EFBFBD> forc<72>e en this->forcecharset <20> l'install)
/*if (mysql_client_encoding ( $this->db ) != $this->getDefaultCharacterSetDatabase())
{
$this->query("SET NAMES '".$this->forcecharset."'", $this->db);
$this->query("SET CHARACTER SET ". $this->forcecharset);
}*/
}
else
{