diff --git a/doku.py b/doku.py index 81c9d1b..a74cfc1 100644 --- a/doku.py +++ b/doku.py @@ -27,6 +27,6 @@ class DokuWiki: if not self.callcache.has_key(key): cmd = ['./doku.php', method ] + args res = subprocess.Popen(cmd, stdin = None, stdout = subprocess.PIPE, stderr = sys.stderr, close_fds = True).communicate() - print "%s->%s" % (cmd, res) - self.callcache[key] = res[0] + self.callcache[key] = unicode(res[0].decode('utf-8')) + print "%s->%s" % (cmd, self.callcache[key]) return self.callcache[key]