From 142906b39c3282cf32ecba95866b639468e24e69 Mon Sep 17 00:00:00 2001 From: Roland W-H Date: Mon, 10 Feb 2025 23:27:42 +0000 Subject: [PATCH] open results file with utf-8 encoding --- src/output_window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output_window.py b/src/output_window.py index 2e8a2b5..e9fcfb7 100644 --- a/src/output_window.py +++ b/src/output_window.py @@ -24,7 +24,7 @@ class OutputWindow(QWidget): if not os.path.exists("output"): os.makedirs("output") filename_str = f"output/{self.platform_name}-{cur_time.year}.{cur_time.month}.{cur_time.day}.txt" - output_file = open(filename_str, "wt") + output_file = open(filename_str, "wt", encoding = "utf-8") output_file.write(self.results_str) # Display fees in output window as plaintext readout