From bf661325db67fe0394e80e83dea8d1db51c43eba Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 22 Dec 2010 11:01:48 -0700 Subject: [PATCH] ... --- resources/recipes/le_monde.recipe | 2 +- src/calibre/ebooks/oeb/base.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/recipes/le_monde.recipe b/resources/recipes/le_monde.recipe index 18be6ca711..c14b8eeeff 100644 --- a/resources/recipes/le_monde.recipe +++ b/resources/recipes/le_monde.recipe @@ -4,7 +4,7 @@ from calibre.web.feeds.recipes import BasicNewsRecipe class LeMonde(BasicNewsRecipe): title = 'Le Monde' __author__ = 'veezh' - description = 'Actualités' + description = u'Actualit\xe9s' oldest_article = 1 max_articles_per_feed = 100 no_stylesheets = True diff --git a/src/calibre/ebooks/oeb/base.py b/src/calibre/ebooks/oeb/base.py index 35d565606d..c015868992 100644 --- a/src/calibre/ebooks/oeb/base.py +++ b/src/calibre/ebooks/oeb/base.py @@ -657,7 +657,10 @@ class Metadata(object): attrib[key] = prefixname(value, nsrmap) if namespace(self.term) == DC11_NS: elem = element(parent, self.term, attrib=attrib) - elem.text = self.value + try: + elem.text = self.value + except: + elem.text = repr(self.value) else: elem = element(parent, OPF('meta'), attrib=attrib) elem.attrib['name'] = prefixname(self.term, nsrmap)