diff --git a/ankiqt/ui/facteditor.py b/ankiqt/ui/facteditor.py index a8ae2b9f5..460795fc3 100644 --- a/ankiqt/ui/facteditor.py +++ b/ankiqt/ui/facteditor.py @@ -641,11 +641,11 @@ class FactEdit(QTextEdit): def _retrieveURL(self, url, ext): filecontents = urllib2.urlopen(url).read() - (fd, name) = tempfile.mkstemp(suffix=".%s" % ext) + (fd, name) = tempfile.mkstemp(suffix=".%s" % ext.encode("ascii")) file = os.fdopen(fd, "wb") file.write(filecontents) file.flush() - return name + return unicode(name, sys.getfilesystemencoding()) def simplifyHTML(self, html): "Remove all style information and P tags." diff --git a/designer/main.ui b/designer/main.ui index eefb0956a..e62ce2014 100644 --- a/designer/main.ui +++ b/designer/main.ui @@ -249,7 +249,7 @@ - Options>> + &Options>> true