aboutsummaryrefslogtreecommitdiff
path: root/pyAggr3g470r.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2010-12-07 17:08:25 +0100
committercedricbonhomme <devnull@localhost>2010-12-07 17:08:25 +0100
commit2c5c2d6288f135e8ccb1fe043b7ba59d8371fc16 (patch)
treeb1e3729926ec963b4c901a38bbd9ecdf75e43c64 /pyAggr3g470r.py
parentMinor bug fix. (diff)
downloadnewspipe-2c5c2d6288f135e8ccb1fe043b7ba59d8371fc16.tar.gz
newspipe-2c5c2d6288f135e8ccb1fe043b7ba59d8371fc16.tar.bz2
newspipe-2c5c2d6288f135e8ccb1fe043b7ba59d8371fc16.zip
Bug fix. ez_epub is not able to decode UTF-8.
Diffstat (limited to 'pyAggr3g470r.py')
-rwxr-xr-xpyAggr3g470r.py6
1 files 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
bgstack15