From f33784cbc9e4b32f1d5e548e083998a309c55d22 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 5 Jan 2019 20:42:42 -0500 Subject: [PATCH] fix: use correct encoding --- tests/shellcheck-to-junit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)