Browse Source

Force changelog to load with utf-8

Fixes ultimaker/cura#335
Jaime van Kessel 9 years ago
parent
commit
9cf383aa7c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      plugins/ChangeLogPlugin/ChangeLog.py
  2. 1 1
      plugins/ChangeLogPlugin/ChangeLog.txt

+ 1 - 1
plugins/ChangeLogPlugin/ChangeLog.py

@@ -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:

+ 1 - 1
plugins/ChangeLogPlugin/ChangeLog.txt

@@ -38,4 +38,4 @@ You can now group objects together to make it easier to manipulate multiple obje
 You can now select different profiles for different objects and in advance mode override individual settings.
 
 *64-bit Windows Builds (New)
-Cura now allows 64-bit Windows builds in addition to the 32-bit builds. For users running the 64-bit version of Windows, you can now load models in more detail.
+Cura now allows 64-bit Windows builds in addition to the 32-bit builds. For users running the 64-bit version of Windows, you can now load models in more detail.