From 6fd8a8f9bf48562fbbc42f908321b67d436c097e Mon Sep 17 00:00:00 2001 From: Patrick Griffis Date: Sat, 2 Oct 2021 09:49:17 -0500 Subject: python: Open all scripts with utf-8 encoding --- plugins/python/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/python/python.py b/plugins/python/python.py index 7bd327e3..1adcde98 100644 --- a/plugins/python/python.py +++ b/plugins/python/python.py @@ -146,7 +146,7 @@ class Plugin: def loadfile(self, filename): try: self.filename = filename - with open(filename) as f: + with open(filename, encoding='utf-8') as f: data = f.read() compiled = compile_file(data, filename) exec(compiled, self.globals) -- cgit 1.4.1