use utf-8 encoding for json
This commit is contained in:
parent
a0df5903b0
commit
c9c1e483c5
|
@ -14,7 +14,7 @@ class OC_JSON{
|
||||||
public static function setContentTypeHeader($type='application/json') {
|
public static function setContentTypeHeader($type='application/json') {
|
||||||
if (!self::$send_content_type_header) {
|
if (!self::$send_content_type_header) {
|
||||||
// We send json data
|
// We send json data
|
||||||
header( 'Content-Type: '.$type );
|
header( 'Content-Type: '.$type . '; charset=utf-8');
|
||||||
self::$send_content_type_header = true;
|
self::$send_content_type_header = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue