Skip to content

Commit 70e9f6d

Browse files
authored
Merge pull request #1 from iamroi/master
fix invalid utf8 content exception
2 parents 64a9c5e + 1c3bd49 commit 70e9f6d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Debugger.php

+2
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ protected function getResponseData(Response $response)
150150
{
151151
if ($response instanceof JsonResponse) {
152152
/** @var $response JsonResponse */
153+
$response->setEncodingOptions($response::DEFAULT_ENCODING_OPTIONS | JSON_INVALID_UTF8_SUBSTITUTE);
154+
153155
return $response->getData() ?: new \StdClass();
154156
}
155157

0 commit comments

Comments
 (0)