diff --git a/src/Plugin/StrawberryRunnersPostProcessor/TextPostProcessor.php b/src/Plugin/StrawberryRunnersPostProcessor/TextPostProcessor.php index 7d08f67..e5c83e2 100644 --- a/src/Plugin/StrawberryRunnersPostProcessor/TextPostProcessor.php +++ b/src/Plugin/StrawberryRunnersPostProcessor/TextPostProcessor.php @@ -476,14 +476,13 @@ public function isXmlMime($mime_type): bool { } /** - * Determine whether the given value is a binary string by checking to see if it has detectable character encoding. + * Determine whether the given value is a binary string. From Symfony DB debug. * * @param string $value * * @return bool */ - private function isBinary($value): bool - { - return false === mb_detect_encoding((string)$value, null, true); + private function isBinary($value): bool { + return !preg_match('//u', $value); } }