From 97a018e3919967857b90ea6a145ad54ab82d2be6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 7 Jun 2017 16:44:09 +0530 Subject: [PATCH] Fix error if recipe uses undecodeable bytestring for title --- src/calibre/web/feeds/news.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/web/feeds/news.py b/src/calibre/web/feeds/news.py index b60b3da0ad..219f8abe16 100644 --- a/src/calibre/web/feeds/news.py +++ b/src/calibre/web/feeds/news.py @@ -1414,7 +1414,7 @@ class BasicNewsRecipe(Recipe): def create_opf(self, feeds, dir=None): if dir is None: dir = self.output_dir - title = self.short_title() + title = force_unicode(self.short_title(), preferred_encoding) if self.output_profile.periodical_date_in_title: title += strftime(self.timefmt) mi = MetaInformation(title, [__appname__])