diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py
index 263a099dc..2aac1dd1d 100755
--- a/ankiqt/ui/main.py
+++ b/ankiqt/ui/main.py
@@ -150,7 +150,7 @@ class AnkiQt(QMainWindow):
def getError(self):
p = self.pool
self.pool = ""
- return p
+ return unicode(p, 'utf8', 'replace')
self.errorPipe = ErrorPipe(self)
sys.stderr = self.errorPipe
@@ -194,10 +194,7 @@ Please do not file a bug report with Anki.
""")
diag.setLayout(layout)
text = QTextEdit()
text.setReadOnly(True)
- try:
- text.setHtml(txt + "