From d30bb5661a468cd4973a1ac1dd0182a5c2053b02 Mon Sep 17 00:00:00 2001 From: Yonghee Han Date: Tue, 29 Aug 2017 13:13:24 +0900 Subject: [PATCH] add to set default char-set encoding to utf-8 PROBLEM: repa job failed SOLUTION: Add to set default char-set encoding to utf-8 Change-Id: I517e730e25863aabf85bd017f57acc10d4cabc29 --- job_repa.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/job_repa.py b/job_repa.py index 46efea3..02cb851 100644 --- a/job_repa.py +++ b/job_repa.py @@ -40,6 +40,10 @@ from common.prerelease import get_prerelease_project_name from common.buildtrigger import trigger_info, trigger_next from common import runner +# set default char-set endcoding to utf-8 +reload(sys) +sys.setdefaultencoding('utf-8') # pylint: disable-msg=E1101 + class LocalError(Exception): """Local error exception.""" pass -- 2.7.4