diff --git a/scripts/wk/graph.py b/scripts/wk/graph.py index 092555f5..913e0f9c 100644 --- a/scripts/wk/graph.py +++ b/scripts/wk/graph.py @@ -64,7 +64,7 @@ def export_io_graph(disk, log_dir, read_rates): y_range = (math.ceil(max_rate/100)*100) + 200 # Save plot data to file for Gnuplot - with open(plot_data, 'w') as _f: + with open(plot_data, 'w', encoding='utf-8') as _f: for i, rate in enumerate(read_rates): percent = (i+1) / len(read_rates) * 100 rate = int(rate / (1024**2)) diff --git a/scripts/wk/hw/diags.py b/scripts/wk/hw/diags.py index 8713cd3f..7bc83d57 100644 --- a/scripts/wk/hw/diags.py +++ b/scripts/wk/hw/diags.py @@ -414,7 +414,7 @@ class State(): exe.run_program(cmd, check=False, shell=True) # osTicket - with open(f'{debug_dir}/osTicket.report', 'a') as _f: + with open(f'{debug_dir}/osTicket.report', 'a', encoding='utf-8') as _f: _f.write('\n'.join(debug.generate_object_report(self.ost))) # SMC diff --git a/scripts/wk/repairs/win.py b/scripts/wk/repairs/win.py index c8ec4a57..e1983ecb 100644 --- a/scripts/wk/repairs/win.py +++ b/scripts/wk/repairs/win.py @@ -1102,7 +1102,7 @@ def run_emsisoft_cmd_scan(): whitelist_path = log_path.with_suffix('.wl') # Create whitelist - whitelist_path.write_text(WHITELIST) + whitelist_path.write_text(WHITELIST, encoding='utf-8') # Run Scan cmd = [