From 0e4ca7df59aa294e648bd279f6f7f6543f0283d0 Mon Sep 17 00:00:00 2001 From: irfan-dahir Date: Sun, 17 Jun 2018 22:23:51 +0500 Subject: [PATCH] fix utf8 issue with search controller --- app/Http/Controllers/SearchController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index 32fb647..460018d 100755 --- a/app/Http/Controllers/SearchController.php +++ b/app/Http/Controllers/SearchController.php @@ -101,7 +101,7 @@ class SearchController extends Controller if (app('redis')->exists($this->hash)) { $this->response['request_cached'] = true; return response()->json( - $this->response + json_decode(app('redis')->get($this->hash), true) + $this->response + json_decode(app('redis')->get($this->hash), true), 200, [], JSON_UNESCAPED_UNICODE ); } @@ -186,7 +186,7 @@ class SearchController extends Controller } return response()->json( - $this->response + $jikan->response + $this->response + $jikan->response, 200, [], JSON_UNESCAPED_UNICODE // fix utf8 issues ); }