diff --git a/tests/shellcheck-to-junit b/tests/shellcheck-to-junit index a1b62e547..ed72d6633 100755 --- a/tests/shellcheck-to-junit +++ b/tests/shellcheck-to-junit @@ -132,7 +132,7 @@ def output_junit(files, output=None): ElementTree.SubElement(root, "system-out") ElementTree.SubElement(root, "system-err") - content = ElementTree.tostring(root, encoding='utf8', method='xml') + content = ElementTree.tostring(root, encoding='UTF-8', method='xml') if output: with open(output, 'w') as f: f.write(content)