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.
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.
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.