mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
7e0a9ea6c0
commit
a92d3701d8
@ -16,7 +16,7 @@ from urllib import quote
|
|||||||
from cssutils import replaceUrls
|
from cssutils import replaceUrls
|
||||||
from cssutils.css import CSSRule
|
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 import parse_css_length
|
||||||
from calibre.ebooks.oeb.base import (
|
from calibre.ebooks.oeb.base import (
|
||||||
OEB_DOCS, OEB_STYLES, rewrite_links, XPath, urlunquote, XLINK, XHTML_NS, OPF, XHTML, EPUB_NS)
|
OEB_DOCS, OEB_STYLES, rewrite_links, XPath, urlunquote, XLINK, XHTML_NS, OPF, XHTML, EPUB_NS)
|
||||||
@ -324,7 +324,7 @@ class Container(ContainerBase):
|
|||||||
else:
|
else:
|
||||||
if isinstance(name, unicode):
|
if isinstance(name, unicode):
|
||||||
name = name.encode('utf-8')
|
name = name.encode('utf-8')
|
||||||
url = 'missing:' + quote(name)
|
url = 'missing:' + force_unicode(quote(name), 'utf-8')
|
||||||
changed.add(base)
|
changed.add(base)
|
||||||
return url
|
return url
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user