From 07dc0b2fdf827a7583e8f29bc7a2a1568e070383 Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Fri, 25 Jul 2014 09:53:25 +0200 Subject: setting and checking default_charset in php.ini to be UTF-8 --- lib/private/util.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/private/util.php') 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'; + } } -- cgit v1.2.3