Merge pull request #3126 from owncloud/json-utf8

use utf-8 encoding for json
This commit is contained in:
Thomas Tanghus 2013-04-25 03:18:52 -07:00
commit 2397772847

View 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;
}
}