From: Bernhard Posselt Date: Thu, 25 Apr 2013 09:36:41 +0000 (+0200) Subject: use utf-8 encoding for json X-Git-Tag: v6.0.0alpha2~854^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c9c1e483c5e7af27a9ad56376a9dccfc893ef268;p=nextcloud-server.git use utf-8 encoding for json --- 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; } }