mirror of https://github.com/kiwix/libkiwix.git
Specify utf8 encoding when opening i18n resource file.
Else, on windows, we will try to open files with "local" encoding (cp1252)
This commit is contained in:
parent
eee6803328
commit
26c06d8c2a
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue