Fixed unicode issue
[biacv.git] / biacv_mainwindow.py
index 72c6bc3..f9e79b3 100644 (file)
@@ -187,7 +187,7 @@ class Biacv_mainwindow (PyQt4.QtGui.QMainWindow, bui.Ui_biacv_mainwindow):
                        )
 
                # set the profile highlights
                        )
 
                # set the profile highlights
-               profile_highlights = unicode (self.profile.toPlainText ().toUtf8 ()).splitlines ()
+               profile_highlights = unicode (self.profile.toPlainText ().toUtf8 (), "utf-8").splitlines ()
                docdata.set_profile (profile_highlights)
 
                # get the list of educational qualifications from the treewidget
                docdata.set_profile (profile_highlights)
 
                # get the list of educational qualifications from the treewidget