From 8dbfd018a39005e079eb66e08b02d4d716b9543a Mon Sep 17 00:00:00 2001 From: Ame Neko <91962831+amenekowo@users.noreply.github.com> Date: Fri, 18 Apr 2025 11:11:39 +0800 Subject: [PATCH] fm11rf08s_full: log file format use utf-8 Signed-off-by: Ame Neko <91962831+amenekowo@users.noreply.github.com> --- client/pyscripts/fm11rf08s_full.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/pyscripts/fm11rf08s_full.py b/client/pyscripts/fm11rf08s_full.py index 714d1acaf..b50f9c56f 100644 --- a/client/pyscripts/fm11rf08s_full.py +++ b/client/pyscripts/fm11rf08s_full.py @@ -95,7 +95,7 @@ def lprint(s='', end='\n', flush=False, prompt="[" + color("=", fg="yellow") + if log is True: global logbuffer if logfile is not None: - with open(logfile, 'a') as f: + with open(logfile, 'a', encoding='utf-8') as f: f.write(s + end) else: # buffering