]> source.dussan.org Git - nextcloud-server.git/commitdiff
use utf-8 encoding for json
authorBernhard Posselt <nukeawhale@gmail.com>
Thu, 25 Apr 2013 09:36:41 +0000 (11:36 +0200)
committerBernhard Posselt <nukeawhale@gmail.com>
Thu, 25 Apr 2013 09:36:41 +0000 (11:36 +0200)
lib/json.php

index f929e958957e99a6a1cc8cd8b919850a7f583c08..6ba0b13806b19fe78f45565290116f9de68212b0 100644 (file)
@@ -14,7 +14,7 @@ class OC_JSON{
        public static function setContentTypeHeader($type='application/json') {
                if (!self::$send_content_type_header) {
                        // We send json data
-                       header( 'Content-Type: '.$type );
+                       header( 'Content-Type: '.$type . '; charset=utf-8');
                        self::$send_content_type_header = true;
                }
        }