diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-25 11:36:41 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-25 11:36:41 +0200 |
commit | c9c1e483c5e7af27a9ad56376a9dccfc893ef268 (patch) | |
tree | 8d3400266f0481fa80275adc9d1d71f24a744b36 /lib | |
parent | a0df5903b0fd2d22fb523c292d4012c74b2bbd7e (diff) | |
download | nextcloud-server-c9c1e483c5e7af27a9ad56376a9dccfc893ef268.tar.gz nextcloud-server-c9c1e483c5e7af27a9ad56376a9dccfc893ef268.zip |
use utf-8 encoding for json
Diffstat (limited to 'lib')
-rw-r--r-- | lib/json.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/json.php b/lib/json.php index f929e958957..6ba0b13806b 100644 --- a/lib/json.php +++ b/lib/json.php @@ -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; } } |