mirror of
https://github.com/ankitects/anki.git
synced 2025-11-14 00:27:13 -05:00
utf+8
This commit is contained in:
parent
597f1dc16a
commit
5032a7d507
1 changed files with 1 additions and 1 deletions
|
|
@ -477,7 +477,7 @@ class Editor(object):
|
||||||
# misbehaving apps may include a null byte in the text
|
# misbehaving apps may include a null byte in the text
|
||||||
txt = txt.replace("\x00", "")
|
txt = txt.replace("\x00", "")
|
||||||
# reverse the url quoting we added to get images to display
|
# reverse the url quoting we added to get images to display
|
||||||
txt = unicode(urllib2.unquote(txt.encode("utf")), "utf8")
|
txt = unicode(urllib2.unquote(txt.encode("utf8")), "utf8")
|
||||||
self.note.fields[self.currentField] = txt
|
self.note.fields[self.currentField] = txt
|
||||||
self.mw.requireReset()
|
self.mw.requireReset()
|
||||||
if not self.addMode:
|
if not self.addMode:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue