python代码ide运行不报错,在jenkins上构建报编码错误
报错:jenkins运行脚本 报错:UnicodeEncodeError: 'gbk' codec can't encode character '\U0001f384'
原因:暂时不清楚
解决办法:
import io import sys sys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding='utf-8')
报错:jenkins运行脚本 报错:UnicodeEncodeError: 'gbk' codec can't encode character '\U0001f384'
原因:暂时不清楚
解决办法:
import io import sys sys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding='utf-8')