diff --git a/src/Api.php b/src/Api.php index be72110..50e6422 100644 --- a/src/Api.php +++ b/src/Api.php @@ -374,7 +374,7 @@ private function decodeResponse(ResponseInterface $response) if ($response->getStatusCode() === 204 || $response->getBody()->getSize() === 0) { return null; } - return json_decode($response->getBody(), true, 512, JSON_THROW_ON_ERROR); + return json_decode($response->getBody(), true, 512, JSON_THROW_ON_ERROR | JSON_INVALID_UTF8_IGNORE); } /**