From 870c1311cd23d8efad27a880d14cb7be814b46fe Mon Sep 17 00:00:00 2001 From: bssthu Date: Tue, 7 Feb 2017 00:48:45 +0800 Subject: [PATCH] fix a bug jp encoding --- scripts/prepare_lang.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/prepare_lang.py b/scripts/prepare_lang.py index 0293c73..ea41925 100644 --- a/scripts/prepare_lang.py +++ b/scripts/prepare_lang.py @@ -7,6 +7,7 @@ # +import io import os import sys @@ -167,4 +168,5 @@ def main(): if __name__ == '__main__': + sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='gb18030') main()