From 5032a7d507ea9897fe2ce98e774bf01357489987 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 11 Jun 2012 19:55:15 +0900 Subject: [PATCH] utf+8 --- aqt/editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/editor.py b/aqt/editor.py index 5c4200a50..090dbb763 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -477,7 +477,7 @@ class Editor(object): # misbehaving apps may include a null byte in the text txt = txt.replace("\x00", "") # 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.mw.requireReset() if not self.addMode: