From 8bc7475d5feb1126baaf68d1e3890299925d553b Mon Sep 17 00:00:00 2001 From: catch <6915-catch@users.noreply.drupalcode.org> Date: Wed, 15 Jan 2025 12:11:41 +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 9e6fd1f4cf0c..04e1f2c05258 100755 --- a/core/scripts/run-tests.sh +++ b/core/scripts/run-tests.sh @@ -1263,7 +1263,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]; -- GitLab