From b525f4fcd6f7e17d07392a4bf1432845a6d2a205 Mon Sep 17 00:00:00 2001 From: Keyboard Slayer <40356204+keyboard-slayer@users.noreply.github.com> Date: Wed, 25 Sep 2024 12:59:49 +0200 Subject: [PATCH] fix: Set encoding to utf8 This improves compatibility with Windows --- meta/plugins/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/plugins/__init__.py b/meta/plugins/__init__.py index 630535c..7240c85 100644 --- a/meta/plugins/__init__.py +++ b/meta/plugins/__init__.py @@ -22,12 +22,12 @@ def readFile(path: str) -> str: - with open(path, "r") as f: + with open(path, "r", encoding="utf8") as f: return f.read() def writeFile(path: str, content: str): - with open(path, "w") as f: + with open(path, "w", encoding="utf8") as f: f.write(content)