From 688954a664ab8e9b3de5bcb8a790c4e3b33d5c0d Mon Sep 17 00:00:00 2001 From: hyugogirubato <65763543+hyugogirubato@users.noreply.github.com> Date: Sun, 7 Jul 2024 10:22:55 +0200 Subject: [PATCH] Fix script encoding --- keydive/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keydive/core.py b/keydive/core.py index 13f55bf..0675516 100644 --- a/keydive/core.py +++ b/keydive/core.py @@ -53,7 +53,7 @@ class Core: Returns: str: The prepared script content. """ - content = Path(__file__).with_name('keydive.js').read_text() + content = Path(__file__).with_name('keydive.js').read_text(encoding='utf-8') symbols = self.__prepare_symbols(self.functions) # Replace placeholders in script template