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];