in some case charset can be in lower case.

Add strtoupper() in UTF-8 check to avoid error message
This commit is contained in:
Yann VERRY 2015-02-11 11:59:33 +01:00
parent 9baf7a0a3f
commit 1fcea6f1bd
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';
}
}