Fixed utf-8 header issue (issue: #333)

This commit is contained in:
Simon Sessingø
2017-12-09 23:56:37 +01:00
parent 7f8d90eef8
commit 0be7bfcfd9

View File

@@ -95,7 +95,7 @@ class Response
throw new \InvalidArgumentException('Invalid type for parameter "value". Must be of type array or object implementing the \JsonSerializable interface.');
}
$this->header('Content-type: application/json');
$this->header('Content-Type: application/json; charset=utf-8');
echo json_encode($value, $options, $dept);
exit(0);
}