From f0d3fe56b48cfa2ef025c167c20c677b47ac98e4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 10 Sep 2009 20:25:32 -0600 Subject: [PATCH] Fix #3425 (Messages often incorrectly display unicode text) --- src/calibre/gui2/tools.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/tools.py b/src/calibre/gui2/tools.py index 52273adbd3..5de098fa64 100644 --- a/src/calibre/gui2/tools.py +++ b/src/calibre/gui2/tools.py @@ -55,7 +55,11 @@ def convert_single_ebook(parent, db, book_ids, auto_conversion=False, out_format out_file.close() temp_files = [] - desc = _('Convert book %d of %d (%s)') % (i + 1, total, repr(mi.title)) + try: + dtitle = unicode(mi.title) + except: + dtitle = repr(mi.title) + desc = _('Convert book %d of %d (%s)') % (i + 1, total, dtitle) recs = cPickle.loads(d.recommendations) if d.opf_file is not None: