diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-07-25 09:53:25 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-07-25 09:53:25 +0200 |
commit | 07dc0b2fdf827a7583e8f29bc7a2a1568e070383 (patch) | |
tree | be96e6eb268e64e8febefd7ca6f80f81f0a5f6cf /lib/private/util.php | |
parent | 3f58d949e012c68a01b9d4603c32244811196939 (diff) | |
download | nextcloud-server-07dc0b2fdf827a7583e8f29bc7a2a1568e070383.tar.gz nextcloud-server-07dc0b2fdf827a7583e8f29bc7a2a1568e070383.zip |
setting and checking default_charset in php.ini to be UTF-8
Diffstat (limited to 'lib/private/util.php')
-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 eea194288f9..ec5b2740ae8 100755 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -1447,4 +1447,11 @@ class OC_Util { return false; } } + + /** + * @return string + */ + public static function isPhpCharSetUtf8() { + return ini_get('default_charset') === 'UTF-8'; + } } |