Skip to content

Commit

Permalink
fix utf-8 decoding of output
Browse files Browse the repository at this point in the history
  • Loading branch information
michield committed Nov 24, 2015
1 parent 03af379 commit 3ad5878
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/restapi/includes/response.php
Expand Up @@ -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);
}
Expand Down Expand Up @@ -66,7 +66,7 @@ public function object_to_array($var)
}
} else {
// simple values are untouched
$result[$key] = utf8_encode($value);
$result[$key] = $value;
}
}

Expand Down

0 comments on commit 3ad5878

Please sign in to comment.