Fix #1324 (Donate - error)

This commit is contained in:
Kovid Goyal 2008-11-29 10:07:58 -08:00
parent dac9fb44dd
commit 70c1443b96

View File

@ -1250,9 +1250,10 @@ in which you want to store your books files. Any existing books will be automati
</form>
'''
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'''
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Donate to support calibre</title>
</head>
<body style="background:white">
@ -1263,7 +1264,7 @@ in which you want to store your books files. Any existing books will be automati
</html>
'''%(MSG, BUTTON)
pt = PersistentTemporaryFile('_donate.htm')
pt.write(HTML)
pt.write(HTML.encode('utf-8'))
pt.close()
QDesktopServices.openUrl(QUrl.fromLocalFile(pt.name))