commit 1b42fe2ea28e0125dbfa4f0307294c215d2d9881
parent f43ddf1d8f84040cc87770015812b164f9afc04c
Author: ThomasV <thomasv@gitorious>
Date: Mon, 16 Jun 2014 13:29:55 +0200
fix #727
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
@@ -761,16 +761,16 @@ class ElectrumWindow(QMainWindow):
def update_receive_qr(self):
- import urlparse
+ import urlparse, urllib
addr = str(self.receive_address_e.text())
if addr:
query = []
amount = self.receive_amount_e.get_amount()
if amount:
query.append('amount=%s'%format_satoshis(amount))
- message = str(self.receive_message_e.text())
+ message = unicode(self.receive_message_e.text()).encode('utf8')
if message:
- query.append('message=%s'%message)
+ query.append('message=%s'%urllib.quote(message))
p = urlparse.ParseResult(scheme='bitcoin', netloc='', path=addr, params='', query='&'.join(query), fragment='')
url = urlparse.urlunparse(p)
else: