Fix UTF-8 script code encoding issue (#1208)

This fixes #1207
This commit is contained in:
ae-ae 2024-02-26 18:45:43 +03:00 committed by GitHub
parent 592ab881f7
commit 1320927fdf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -912,7 +912,7 @@ class ScriptInfo(object):
# noinspection PyBroadException
try:
with open(script_path, 'r') as f:
with open(script_path, 'r', encoding='utf-8') as f:
script_code = f.read()
return script_code
except Exception: