mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-25 06:31:59 +01:00
in case no charset is set, default to utf-8, as otherwise setting charset in sqlfs_stream_wrapper can stall install
This commit is contained in:
parent
64c076c536
commit
a48104bfd7
@ -134,6 +134,9 @@ class translation
|
||||
// if no translations are loaded (system-startup) use a default, else lang('charset')
|
||||
$charset = !self::$lang_arr ? 'utf-8' : strtolower(self::translate('charset'));
|
||||
}
|
||||
// in case no charset is set, default to utf-8
|
||||
if (empty($charset) || $charset == 'charset') $charset = 'utf-8';
|
||||
|
||||
// we need to set our charset as mbstring.internal_encoding if mbstring.func_overlaod > 0
|
||||
// else we get problems for a charset is different from the default utf-8
|
||||
if (ini_get('mbstring.func_overload') && self::$mbstring_internal_encoding != $charset)
|
||||
|
Loading…
Reference in New Issue
Block a user