fm11rf08s_full: log file format use utf-8

Signed-off-by: Ame Neko <91962831+amenekowo@users.noreply.github.com>
This commit is contained in:
Ame Neko 2025-04-18 11:11:39 +08:00 committed by GitHub
commit 8dbfd018a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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