From b4e8ea5e5860eb08d86b144c64507c21256528e0 Mon Sep 17 00:00:00 2001 From: Bjverde Date: Tue, 27 Sep 2022 15:58:11 -0300 Subject: [PATCH] =?UTF-8?q?:bug:=20BASE=20#270=20corre=C3=A7=C3=A3o=20reto?= =?UTF-8?q?rno=20do=20json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- appexemplo_v2.0/api/api_controllers/TGenericAPI.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appexemplo_v2.0/api/api_controllers/TGenericAPI.class.php b/appexemplo_v2.0/api/api_controllers/TGenericAPI.class.php index 20b50943..528642e5 100644 --- a/appexemplo_v2.0/api/api_controllers/TGenericAPI.class.php +++ b/appexemplo_v2.0/api/api_controllers/TGenericAPI.class.php @@ -13,7 +13,7 @@ public function __construct() public static function getBodyJson($msg, Response $response,$status=200) { $status = empty($status)?200:$status; - $msgJson = json_encode($msg); + $msgJson = json_encode($msg, JSON_UNESCAPED_UNICODE); $response->withHeader('Content-Type', 'application/json'); $response->getBody()->write( $msgJson ); return $response->withStatus( $status );