From ffccd0e20dd521a8e227837274fdebda4de2ece6 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Thu, 13 Oct 2011 07:34:04 -0700 Subject: [PATCH] removing utf encode on opening file --- core/reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/reader.py b/core/reader.py index f129927..4ed707e 100644 --- a/core/reader.py +++ b/core/reader.py @@ -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))