From 2c5c2d6288f135e8ccb1fe043b7ba59d8371fc16 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Tue, 7 Dec 2010 17:08:25 +0100 Subject: Bug fix. ez_epub is not able to decode UTF-8. --- pyAggr3g470r.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index 1d9c1c1b..a4a8efd8 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -1142,9 +1142,9 @@ class Root: except OSError: return self.error_page(utils.path + "var/export/epub/"+" already exists.\nYou should delete this folder.") section = ez_epub.Section() - section.title = article.article_title.decode() - section.paragraphs = [utils.clear_string(article.article_description)] - ez_epub.makeBook(article.article_title.decode(), [feed.feed_title.decode()], [section], \ + section.title = article.article_title.decode('utf-8') + section.paragraphs = [utils.clear_string(article.article_description).decode('utf-8')] + ez_epub.makeBook(article.article_title.decode('utf-8'), [feed.feed_title.decode('utf-8')], [section], \ os.path.normpath(folder + "article"), lang='en-US', cover=None) return self.article(param) epub.exposed = True -- cgit