Merge pull request #14097 from yanntech/fix/utf8-check
in some case charset can be in lower case.
This commit is contained in:
commit
99a97649f2
1 changed files with 3 additions and 1 deletions
|
@ -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';
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue