python: Open all scripts with utf-8 encoding
This commit is contained in:
parent
40399b1cb6
commit
6fd8a8f9bf
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user