[acronym] Add support for UTF-8 expansions
This commit is contained in:
@@ -65,7 +65,7 @@ class AcronymsExpanderPlugin(GajimPlugin):
|
|||||||
data_file = self.local_file_path('acronyms')
|
data_file = self.local_file_path('acronyms')
|
||||||
if not os.path.isfile(data_file):
|
if not os.path.isfile(data_file):
|
||||||
return {}
|
return {}
|
||||||
data = open(data_file, 'r')
|
data = open(data_file, 'r', encoding='utf-8')
|
||||||
acronyms = eval(data.read())
|
acronyms = eval(data.read())
|
||||||
data.close()
|
data.close()
|
||||||
return acronyms
|
return acronyms
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[info]
|
[info]
|
||||||
name: Acronyms Expander
|
name: Acronyms Expander
|
||||||
short_name: acronyms_expander
|
short_name: acronyms_expander
|
||||||
version: 0.1
|
version: 0.2
|
||||||
description: Replaces acronyms (or other strings) with given expansions/substitutes.
|
description: Replaces acronyms (or other strings) with given expansions/substitutes.
|
||||||
authors: Mateusz Biliński <mateusz@bilinski.it>
|
authors: Mateusz Biliński <mateusz@bilinski.it>
|
||||||
homepage: http://blog.bilinski.it
|
homepage: http://blog.bilinski.it
|
||||||
|
|||||||
Reference in New Issue
Block a user