From fefad31528b38b1262a293a2fde22aeb1477373d Mon Sep 17 00:00:00 2001 From: mailchuck Date: Sat, 12 Mar 2016 08:49:20 +0100 Subject: [PATCH] Clipboard copy unicode Copying unicode subjects to clipboard didn't work. Fixes #183 --- src/bitmessageqt/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index 2c82b9a9..57f0dacd 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -3759,8 +3759,9 @@ class MyForm(settingsmixin.SMainWindow): text = str(tableWidget.item(currentRow, currentColumn).label) else: text = tableWidget.item(currentRow, currentColumn).data(Qt.UserRole) + text = unicode(str(text), 'utf-8', 'ignore') clipboard = QtGui.QApplication.clipboard() - clipboard.setText(str(text)) + clipboard.setText(text) #set avatar functions def on_action_TreeWidgetSetAvatar(self):