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 );