From a92d3701d879fe752deec10fba2f6f9de25621df Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 30 Jul 2017 20:41:40 +0530 Subject: [PATCH] ... --- src/calibre/srv/render_book.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/srv/render_book.py b/src/calibre/srv/render_book.py index aa8b90bc59..d2d1a14d26 100644 --- a/src/calibre/srv/render_book.py +++ b/src/calibre/srv/render_book.py @@ -16,7 +16,7 @@ from urllib import quote from cssutils import replaceUrls from cssutils.css import CSSRule -from calibre import prepare_string_for_xml +from calibre import prepare_string_for_xml, force_unicode from calibre.ebooks import parse_css_length from calibre.ebooks.oeb.base import ( OEB_DOCS, OEB_STYLES, rewrite_links, XPath, urlunquote, XLINK, XHTML_NS, OPF, XHTML, EPUB_NS) @@ -324,7 +324,7 @@ class Container(ContainerBase): else: if isinstance(name, unicode): name = name.encode('utf-8') - url = 'missing:' + quote(name) + url = 'missing:' + force_unicode(quote(name), 'utf-8') changed.add(base) return url