Merge pull request #14097 from yanntech/fix/utf8-check

in some case charset can be in lower case.
This commit is contained in:
Thomas Müller 2015-02-11 18:04:54 +01:00
commit 99a97649f2
1 changed files with 3 additions and 1 deletions

View File

@ -1425,10 +1425,12 @@ class OC_Util {
}
/**
* Check if PhpCharset config is UTF-8
*
* @return string
*/
public static function isPhpCharSetUtf8() {
return ini_get('default_charset') === 'UTF-8';
return strtoupper(ini_get('default_charset')) === 'UTF-8';
}
}