From b5ae0a5ba814c26824b49bb1da1780bb386cd314 Mon Sep 17 00:00:00 2001 From: ced <> Date: Thu, 4 Oct 2007 05:58:35 +0000 Subject: [PATCH] Better fix for printscreen bzr revid: ced-631f8c3681eff556fb19352542b84a85cad1cd35 --- bin/report/printscreen/ps_form.py | 2 +- bin/report/printscreen/ps_list.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)