Read config.md as UTF-8

This commit is contained in:
Liam Cooke 2018-03-01 13:54:54 +11:00
parent 83cc2a6ce8
commit 0c1136e379

View File

@ -216,7 +216,7 @@ When loading '%(name)s':
def addonConfigHelp(self, dir):
path = os.path.join(self.addonsFolder(dir), "config.md")
if os.path.exists(path):
with open(path) as f:
with open(path, encoding="utf-8") as f:
return markdown.markdown(f.read())
else:
return ""