diff --git a/plugins/restapi/includes/response.php b/plugins/restapi/includes/response.php index 55e2a22..20ef709 100644 --- a/plugins/restapi/includes/response.php +++ b/plugins/restapi/includes/response.php @@ -36,7 +36,7 @@ public function setData($type, $data) public function output() { - header('Content-Type: application/json'); + header('Content-Type: application/json; charset=utf-8;'); echo $this->json_encode2($this->result); die(0); } @@ -66,7 +66,7 @@ public function object_to_array($var) } } else { // simple values are untouched - $result[$key] = utf8_encode($value); + $result[$key] = $value; } }