diff options
Diffstat (limited to 'release/scripts/modules/bl_i18n_utils/utils.py')
-rw-r--r-- | release/scripts/modules/bl_i18n_utils/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/modules/bl_i18n_utils/utils.py b/release/scripts/modules/bl_i18n_utils/utils.py index 7c22a86d687..493afc53267 100644 --- a/release/scripts/modules/bl_i18n_utils/utils.py +++ b/release/scripts/modules/bl_i18n_utils/utils.py @@ -1158,7 +1158,7 @@ class I18n: print("WARNING: skipping file {}, too huge!".format(path)) return None, None, None, False txt = "" - with open(path) as f: + with open(path, encoding="utf8") as f: txt = f.read() _in = 0 _out = len(txt) @@ -1544,7 +1544,7 @@ class I18n: "", self.settings.PARSER_PY_MARKER_END, ] - with open(dst, 'w') as f: + with open(dst, 'w', encoding="utf8") as f: f.write((prev or "") + "\n".join(txt) + (nxt or "")) self.unescape() |