From f63103047490f9b673e138b8bfd5e91098c52740 Mon Sep 17 00:00:00 2001 From: chsamala <57138674+chsamala@users.noreply.github.com> Date: Thu, 4 Jun 2020 10:26:33 -0700 Subject: [PATCH] Encoding to utf-8 before writing to file. Encoding to utf-8 before writing to file. --- LCM/scripts/PerformInventory.py | 1 + 1 file changed, 1 insertion(+) diff --git a/LCM/scripts/PerformInventory.py b/LCM/scripts/PerformInventory.py index 46983a08a..fc5406cbe 100755 --- a/LCM/scripts/PerformInventory.py +++ b/LCM/scripts/PerformInventory.py @@ -242,6 +242,7 @@ def perform_inventory(args): tempReportFileHandle = open(temp_report_path, 'w') try: + final_xml_report = final_xml_report.encode("utf-8") tempReportFileHandle.write(final_xml_report) finally: if (tempReportFileHandle):