Skip to content
Snippets Groups Projects
Unverified Commit 7de985db authored by Wiktor's avatar Wiktor
Browse files

[acronym] Add support for UTF-8 expansions

parent f583de57
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
[info]
name: Acronyms Expander
short_name: acronyms_expander
version: 0.1
version: 0.2
description: Replaces acronyms (or other strings) with given expansions/substitutes.
authors: Mateusz Biliński <mateusz@bilinski.it>
homepage: http://blog.bilinski.it
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment