Merge pull request #776 from kiwix/fix_i18n_windows

Specify utf8 encoding when opening i18n resource file.
This commit is contained in:
Kelson 2022-05-17 22:50:20 +02:00 committed by GitHub
commit eaa8c3c91c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class Resource:
filename = filename.strip()
self.filename = filename
self.lang_code = lang_code(filename)
with open(filename, 'r') as f:
with open(filename, 'r', encoding='utf-8') as f:
self.data = f.read()
def get_string_table_name(self):