diff --git a/htdocs/core/db/mysqli.class.php b/htdocs/core/db/mysqli.class.php index aaeaaf4c910..ff38a549938 100644 --- a/htdocs/core/db/mysqli.class.php +++ b/htdocs/core/db/mysqli.class.php @@ -112,7 +112,7 @@ class DoliDBMysqli extends DoliDB $this->ok = true; // If client is old latin, we force utf8 - $clientmustbe = empty($conf->db->dolibarr_main_db_character_set) ? 'utf8' : $conf->db->dolibarr_main_db_character_set; + $clientmustbe = empty($conf->db->character_set) ? 'utf8' : $conf->db->db_character_set; if (preg_match('/latin1/', $clientmustbe)) { $clientmustbe = 'utf8'; }