From 52fafcaad6e6f5e05e8497ba83b5757cb453beff Mon Sep 17 00:00:00 2001 From: catch <6915-catch@users.noreply.drupalcode.org> Date: Wed, 15 Jan 2025 14:24:01 +0000 Subject: [PATCH] Issue #3499596 by alexpott: run-tests.sh cannot handle unicode in PHPUnit output --- core/scripts/run-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh index bbaa1f38678..d5d07e24425 100755 --- a/core/scripts/run-tests.sh +++ b/core/scripts/run-tests.sh @@ -1251,7 +1251,7 @@ function simpletest_script_reporter_write_xml_results(TestRunResultsStorageInter } $test_class = $result->test_class; if (!isset($xml_files[$test_class])) { - $doc = new DomDocument('1.0'); + $doc = new DomDocument('1.0', 'utf-8'); $root = $doc->createElement('testsuite'); $root = $doc->appendChild($root); $xml_files[$test_class] = ['doc' => $doc, 'suite' => $root];