mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 13:34:57 +01:00
...
This commit is contained in:
parent
7e0a9ea6c0
commit
a92d3701d8
1 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@
|
|||
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 @@ def link_replacer(base, url):
|
|||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue