encode utf8 result
This commit is contained in:
parent
75f25748cb
commit
21cb1f23a6
1 changed files with 2 additions and 2 deletions
4
doku.py
4
doku.py
|
@ -27,6 +27,6 @@ class DokuWiki:
|
||||||
if not self.callcache.has_key(key):
|
if not self.callcache.has_key(key):
|
||||||
cmd = ['./doku.php', method ] + args
|
cmd = ['./doku.php', method ] + args
|
||||||
res = subprocess.Popen(cmd, stdin = None, stdout = subprocess.PIPE, stderr = sys.stderr, close_fds = True).communicate()
|
res = subprocess.Popen(cmd, stdin = None, stdout = subprocess.PIPE, stderr = sys.stderr, close_fds = True).communicate()
|
||||||
print "%s->%s" % (cmd, res)
|
self.callcache[key] = unicode(res[0].decode('utf-8'))
|
||||||
self.callcache[key] = res[0]
|
print "%s->%s" % (cmd, self.callcache[key])
|
||||||
return self.callcache[key]
|
return self.callcache[key]
|
||||||
|
|
Loading…
Reference in a new issue