From 0f2557741199c108e36c5af72642ddba4d315130 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Wed, 7 Aug 2024 23:20:41 +0800 Subject: [PATCH] encoding --- LunaTranslator/LunaTranslator/LunaTranslator_main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/LunaTranslator/LunaTranslator/LunaTranslator_main.py b/LunaTranslator/LunaTranslator/LunaTranslator_main.py index 60b99cab..280e988c 100644 --- a/LunaTranslator/LunaTranslator/LunaTranslator_main.py +++ b/LunaTranslator/LunaTranslator/LunaTranslator_main.py @@ -178,6 +178,7 @@ class Lockedfile: file = open( f"logs/{time.strftime('%Y-%m-%d-%H-%M-%S', time.localtime())}.txt", "w", + encoding="utf8", errors="ignore", ) while True: