From 22dff36939e85476bbbddeaf4801d28da81fc673 Mon Sep 17 00:00:00 2001 From: n1nj4sec Date: Wed, 27 Jul 2016 19:11:07 +0200 Subject: [PATCH] fix job encoding issue --- pupy/pupylib/PupyJob.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pupy/pupylib/PupyJob.py b/pupy/pupylib/PupyJob.py index 82e02f22..509dca4a 100644 --- a/pupy/pupylib/PupyJob.py +++ b/pupy/pupylib/PupyJob.py @@ -204,7 +204,8 @@ class PupyJob(object): res="" for m in self.pupymodules: res+=m.formatter.format_section(str(m.client)) - res+=m.stdout.getvalue() + gv=m.stdout.getvalue() + res+=gv.encode('utf8', errors="replace") res+="\n" m.stdout.truncate(0) return res