using php version depending default_charset or mbstring.internal_encoding

This commit is contained in:
Ralf Becker 2014-12-09 16:46:37 +00:00
parent ef84797019
commit 0c9cc9bdbd

View File

@ -169,7 +169,8 @@ class translation
{
if(!empty(self::$system_charset))
{
ini_set('mbstring.internal_encoding',self::$system_charset);
$ini_default_charset = version_compare(PHP_VERSION, '5.6', '<') ? 'mbstring.internal_encoding' : 'default_charset';
ini_set($ini_default_charset, self::$system_charset);
}
}