force utf8 encoding on eval_python.py
This commit is contained in:
parent
1fedaf02bd
commit
0f1bf6ee22
1 changed files with 1 additions and 1 deletions
|
@ -21,6 +21,6 @@ class Module(ModuleManager.BaseModule):
|
||||||
|
|
||||||
if page and page.data:
|
if page and page.data:
|
||||||
event["stdout"].write("%s: %s" % (event["user"].nickname,
|
event["stdout"].write("%s: %s" % (event["user"].nickname,
|
||||||
page.decode().rstrip("\n")))
|
page.decode("utf8").rstrip("\n")))
|
||||||
else:
|
else:
|
||||||
event["stderr"].write("%s: failed to eval" % event["user"].nickname)
|
event["stderr"].write("%s: failed to eval" % event["user"].nickname)
|
||||||
|
|
Loading…
Reference in a new issue