manticoresoftware / manticoresearch-php

Official PHP client for Manticore Search
MIT License
167 stars 32 forks source link

Update Response.php #107

Closed inetsystem closed 1 year ago

inetsystem commented 1 year ago

Checking if response string contains magic characters (). For example, if your string contains U+001A or another bad symbol json_last_error() === JSON_ERROR_UTF8 && $this->stripBadUtf8() is not enough.

Nick-S-2018 commented 1 year ago

We don't check the response itself, but just use the 'strip_bad_utf8' flag previously set in the Search request to determine if the response is stripped when possible.