Amélioration du support des charsets
This commit is contained in:
parent
67d5846dca
commit
354788fa95
@ -132,8 +132,12 @@ class DoliDb
|
|||||||
$this->db_user=$dolibarr_main_db_user;
|
$this->db_user=$dolibarr_main_db_user;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
$this->forcecharset=$conf->character_set_client;
|
if ($conf->db->character_set && $conf->db->character_set != null && $conf->db->character_set !=""){
|
||||||
$this->forcecollate=$conf->collation_connection;
|
$this->forcecharset=$conf->db->character_set;
|
||||||
|
}
|
||||||
|
if ($conf->db->collation_connection && $conf->db->collation_connection != null && $conf->db->collation_connection !=""){
|
||||||
|
$this->forcecollate=$conf->db->collation_connection;
|
||||||
|
}
|
||||||
$this->db_user=$conf->db->user;
|
$this->db_user=$conf->db->user;
|
||||||
|
|
||||||
$this->transaction_opened=0;
|
$this->transaction_opened=0;
|
||||||
|
|||||||
@ -131,8 +131,12 @@ class DoliDb
|
|||||||
$this->db_user=$dolibarr_main_db_user;
|
$this->db_user=$dolibarr_main_db_user;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
if ($conf->db->character_set && $conf->db->character_set != null && $conf->db->character_set !=""){
|
||||||
$this->forcecharset=$conf->db->character_set;
|
$this->forcecharset=$conf->db->character_set;
|
||||||
|
}
|
||||||
|
if ($conf->db->collation_connection && $conf->db->collation_connection != null && $conf->db->collation_connection !=""){
|
||||||
$this->forcecollate=$conf->db->collation_connection;
|
$this->forcecollate=$conf->db->collation_connection;
|
||||||
|
}
|
||||||
$this->db_user=$conf->db->user;
|
$this->db_user=$conf->db->user;
|
||||||
|
|
||||||
$this->transaction_opened=0;
|
$this->transaction_opened=0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user