stdout, stderr = p.communicate()\r
message = ""\r
if stdout is not None:\r
- message = stdout.decode() #for compatibility in python 2 and 3\r
+ message = stdout.decode(encoding='utf-8', errors='ignore') #for compatibility in python 2 and 3\r
\r
if p.returncode != 0:\r
raise RuntimeError("Error while execute command \'{0}\' in direcotry {1}\n{2}".format(" ".join(Args), WorkDir, message))\r