From 85c3f4640a4ec423859906fd5adac946c72ce6de Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 16 Dec 2013 15:20:26 +0000 Subject: Encode output as utf8 --- scripts/mammoth | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/mammoth b/scripts/mammoth index 0aeb93d..f4470f7 100644 --- a/scripts/mammoth +++ b/scripts/mammoth @@ -22,7 +22,7 @@ def main(): for message in result.messages: sys.stderr.write(message.message) sys.stderr.write("\n") - output.write(result.value) + output.write(result.value.encode("utf8")) @contextlib.contextmanager -- cgit v1.2.3