removing utf encode on opening file
This commit is contained in:
parent
84a23f7032
commit
ffccd0e20d
@ -322,7 +322,7 @@ class MainWindowReader(QtGui.QMainWindow, Ui_MainWindowReader):
|
||||
def openFile(self, filename):
|
||||
filename = unicode(filename)
|
||||
try:
|
||||
with open(filename.encode('utf-8'), 'rb') as fp:
|
||||
with open(filename, 'rb') as fp:
|
||||
content = fp.read()
|
||||
except IOError:
|
||||
self.setStatus(u'Failed to load file {0}'.format(filename))
|
||||
|
Loading…
Reference in New Issue
Block a user