From 0be7bfcfd9418a517d0fa99da46fe3396f1f4e87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sessing=C3=B8?= Date: Sat, 9 Dec 2017 23:56:37 +0100 Subject: [PATCH] Fixed utf-8 header issue (issue: #333) --- src/Pecee/Http/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pecee/Http/Response.php b/src/Pecee/Http/Response.php index 3b9ab8c..9045109 100644 --- a/src/Pecee/Http/Response.php +++ b/src/Pecee/Http/Response.php @@ -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); }