Force changelog to load with utf-8

Fixes ultimaker/cura#335
This commit is contained in:
Jaime van Kessel 2015-09-07 13:51:16 +02:00
parent 50f557f5a8
commit 9cf383aa7c
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ class ChangeLog(Extension, QObject,):
def loadChangeLogs(self):
self._change_logs = {}
with open(os.path.join(PluginRegistry.getInstance().getPluginPath("ChangeLogPlugin"), "ChangeLog.txt"), 'r') as f:
with open(os.path.join(PluginRegistry.getInstance().getPluginPath("ChangeLogPlugin"), "ChangeLog.txt"), 'r',-1, "utf-8") as f:
open_version = None
open_header = None
for line in f: