Skip to content

Instantly share code, notes, and snippets.

@hdonnay
Created December 6, 2021 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hdonnay/f6ca9837f196c61092dcac73a8e747cc to your computer and use it in GitHub Desktop.
Save hdonnay/f6ca9837f196c61092dcac73a8e747cc to your computer and use it in GitHub Desktop.
diff --git a/english/security/oval/oval/definition/generator.py b/english/security/oval/oval/definition/generator.py
index e7ce5eb4d03..7fceeabb436 100644
--- a/english/security/oval/oval/definition/generator.py
+++ b/english/security/oval/oval/definition/generator.py
@@ -526,4 +526,4 @@ def createOVALDefinitions (ovals):
def printOVALDefinitions (root):
if len(root.find("definitions")):
- print(etree.tostring(root, pretty_print=True, xml_declaration=True).decode('utf-8'))
+ print(etree.tostring(root, pretty_print=True, encoding='UTF-8', xml_declaration=True).decode('utf-8'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment