diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index 486f80ec..dd67d211 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -2585,19 +2585,20 @@ class MyForm(QtGui.QMainWindow): for row in queryreturn: messageText, = row - messageText = shared.fixPotentiallyInvalidUTF8Data(messageText) - messageText = unicode(messageText, 'utf-8)') lines = messageText.split('\n') - for i in xrange(len(lines)): + totalLines = len(lines) + for i in xrange(totalLines): if 'Message ostensibly from ' in lines[i]: - lines[i] = u'
%s
' % ( + lines[i] = '%s
' % ( lines[i]) elif lines[i] == '------------------------------------------------------': lines[i] = '