From b0b1b8c7a390b36e4ce02063b5a2bad02258f97e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 17 Jan 2013 13:07:26 +0530 Subject: [PATCH] MOBI Input: Do not choke on MOBI files with incorrectly encoded titles. Fixes #1100601 (Private bug) --- src/calibre/ebooks/mobi/reader/mobi6.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/mobi/reader/mobi6.py b/src/calibre/ebooks/mobi/reader/mobi6.py index a57e98b771..42834deca6 100644 --- a/src/calibre/ebooks/mobi/reader/mobi6.py +++ b/src/calibre/ebooks/mobi/reader/mobi6.py @@ -249,7 +249,7 @@ class MobiReader(object): head.insert(0, m) if not title: title = head.makeelement('title', {}) - title.text = self.book_header.title + title.text = clean_ascii_chars(self.book_header.title) title.tail = '\n\t' head.insert(0, title) head.text = '\n\t'