mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
correctly decode %-escaped utf8 when pasting (#865)
This commit is contained in:
parent
e06594a303
commit
bbe248698a
1 changed files with 2 additions and 1 deletions
|
@ -1102,7 +1102,8 @@ class EditorWebView(AnkiWebView):
|
|||
return
|
||||
finally:
|
||||
self.editor.mw.progress.finish()
|
||||
path = namedtmp(os.path.basename(urllib2.unquote(url)))
|
||||
path = unicode(urllib2.unquote(url.encode("utf8")), "utf8")
|
||||
path = namedtmp(os.path.basename(path))
|
||||
file = open(path, "wb")
|
||||
file.write(filecontents)
|
||||
file.close()
|
||||
|
|
Loading…
Reference in a new issue