diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-08-11 22:11:11 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-08-11 22:11:11 +0200 |
commit | 3e493501daad6baaa590d84fbccfeec8d1c86ae2 (patch) | |
tree | a677cc0fd5ccc712d698b42051d437d616c40224 /lib | |
parent | 6aa8693198f516b7063e692d767a841ca7bd9e5c (diff) | |
parent | 691306cf4e9ce043e496756bfc84ef174ec3dd15 (diff) | |
download | nextcloud-server-3e493501daad6baaa590d84fbccfeec8d1c86ae2.tar.gz nextcloud-server-3e493501daad6baaa590d84fbccfeec8d1c86ae2.zip |
Merge pull request #9890 from owncloud/check-php-charset-master
setting and checking default_charset in php.ini to be UTF-8
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/private/util.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index 896b076afa6..be4aac69564 100755 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -1467,4 +1467,11 @@ class OC_Util { return false; } } + + /** + * @return string + */ + public static function isPhpCharSetUtf8() { + return ini_get('default_charset') === 'UTF-8'; + } } |