[acronym] Add support for UTF-8 expansions

This commit is contained in:
Wiktor Kwapisiewicz
2018-02-16 21:33:58 +01:00
parent f583de57d2
commit 7de985db84
2 changed files with 2 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ class AcronymsExpanderPlugin(GajimPlugin):
data_file = self.local_file_path('acronyms')
if not os.path.isfile(data_file):
return {}
data = open(data_file, 'r')
data = open(data_file, 'r', encoding='utf-8')
acronyms = eval(data.read())
data.close()
return acronyms