mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
set our default "utf-8" charset when opening db-connection, as some setup code, does not use egw-object and fail if php defaults to a different one
This commit is contained in:
parent
a025f88732
commit
67df38ddbf
@ -127,7 +127,7 @@ class egw extends egw_minimal
|
||||
{
|
||||
$GLOBALS['egw_info']['server'][$row['config_name']] = $row['config_value'];
|
||||
}
|
||||
if ($GLOBALS['egw_info']['server']['system_charset'])
|
||||
if ($GLOBALS['egw_info']['server']['system_charset'] && $GLOBALS['egw_info']['server']['system_charset'] != 'utf-8')
|
||||
{
|
||||
$this->db->Link_ID->SetCharSet($GLOBALS['egw_info']['server']['system_charset']);
|
||||
}
|
||||
|
@ -548,6 +548,9 @@ class egw_db
|
||||
ini_set('mssql.textlimit',2147483647);
|
||||
ini_set('mssql.sizelimit',2147483647);
|
||||
}
|
||||
// set our default charset
|
||||
$this->Link_ID->SetCharSet('utf-8');
|
||||
|
||||
$new_connection = true;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user