diff --git a/bin/report/printscreen/ps_form.py b/bin/report/printscreen/ps_form.py index 7aa6ded85b1..fc5ebb182eb 100644 --- a/bin/report/printscreen/ps_form.py +++ b/bin/report/printscreen/ps_form.py @@ -123,7 +123,7 @@ class report_printscreen_list(report_int): for f in fields_order: field = new_doc.createElement("field") - field_txt = new_doc.createTextNode(fields[f]['string'].encode('utf-8')) + field_txt = new_doc.createTextNode(str(fields[f]['string'])) field.appendChild(field_txt) header.appendChild(field) diff --git a/bin/report/printscreen/ps_list.py b/bin/report/printscreen/ps_list.py index d0aa92bc83b..68e1553cfbd 100644 --- a/bin/report/printscreen/ps_list.py +++ b/bin/report/printscreen/ps_list.py @@ -136,7 +136,7 @@ class report_printscreen_list(report_int): for f in fields_order: field = new_doc.createElement("field") - field_txt = new_doc.createTextNode(fields[f]['string'].encode('utf-8')) + field_txt = new_doc.createTextNode(str(fields[f]['string'] or '')) field.appendChild(field_txt) header.appendChild(field)