From 70c1443b96f474125aa1cd809d81977f5d96842c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 29 Nov 2008 10:07:58 -0800 Subject: [PATCH] Fix #1324 (Donate - error) --- src/calibre/gui2/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/main.py b/src/calibre/gui2/main.py index d820c7bff3..770d2c35fe 100644 --- a/src/calibre/gui2/main.py +++ b/src/calibre/gui2/main.py @@ -1250,9 +1250,10 @@ in which you want to store your books files. Any existing books will be automati ''' MSG = _('is the result of the efforts of many volunteers from all over the world. If you find it useful, please consider donating to support its development.') - HTML = ''' + HTML = u''' + Donate to support calibre @@ -1263,7 +1264,7 @@ in which you want to store your books files. Any existing books will be automati '''%(MSG, BUTTON) pt = PersistentTemporaryFile('_donate.htm') - pt.write(HTML) + pt.write(HTML.encode('utf-8')) pt.close() QDesktopServices.openUrl(QUrl.fromLocalFile(pt.name))