Fix #3425 (Messages often incorrectly display unicode text)

This commit is contained in:
Kovid Goyal 2009-09-10 20:25:32 -06:00
parent cca1e605dc
commit f0d3fe56b4

View File

@ -55,7 +55,11 @@ def convert_single_ebook(parent, db, book_ids, auto_conversion=False, out_format
out_file.close() out_file.close()
temp_files = [] 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) recs = cPickle.loads(d.recommendations)
if d.opf_file is not None: if d.opf_file is not None: