diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index 9543503f..486f80ec 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -2583,16 +2583,18 @@ class MyForm(QtGui.QMainWindow): '''select message from inbox where msgid=?''', msgid) if queryreturn != []: for row in queryreturn: - messageAtCurrentInboxRow, = row + messageText, = row - lines = messageAtCurrentInboxRow.split('\n') + messageText = shared.fixPotentiallyInvalidUTF8Data(messageText) + messageText = unicode(messageText, 'utf-8)') + lines = messageText.split('\n') for i in xrange(len(lines)): if 'Message ostensibly from ' in lines[i]: - lines[i] = '
%s
' % ( + lines[i] = u'%s
' % ( lines[i]) elif lines[i] == '------------------------------------------------------': lines[i] = '