diff --git a/tests/integration/Core/Repository/SearchServiceLocationTest.php b/tests/integration/Core/Repository/SearchServiceLocationTest.php index 4974ea32d9..ea97cb39a4 100644 --- a/tests/integration/Core/Repository/SearchServiceLocationTest.php +++ b/tests/integration/Core/Repository/SearchServiceLocationTest.php @@ -191,7 +191,7 @@ protected function createFolderWithNonPrintableUtf8Characters(): Content $createStruct->alwaysAvailable = false; $createStruct->setField( 'name', - utf8_decode("Non\x09Printable\x0EFolder") + mb_convert_encoding("Non\x09Printable\x0EFolder", 'ISO-8859-1', 'UTF-8') ); $locationCreateStruct = $repository->getLocationService()->newLocationCreateStruct(2); @@ -338,7 +338,7 @@ public function testNonPrintableUtf8Characters(): void 'query' => new Criterion\Field( 'name', Criterion\Operator::EQ, - utf8_decode("Non\x09Printable\x0EFolder") + mb_convert_encoding("Non\x09Printable\x0EFolder", 'ISO-8859-1', 'UTF-8') ), ] );