在 jenkins 中执行 python 脚本 报如下错误:
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)
可以在jenkins Configure->Build(excute shell) 脚本中首先设置如下环境变量:
export PYTHONIOENCODING=UTF-8
在 jenkins 中执行 python 脚本 报如下错误:
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)
可以在jenkins Configure->Build(excute shell) 脚本中首先设置如下环境变量:
export PYTHONIOENCODING=UTF-8
本文标题:jenkins 中执行 python 脚本,报格式错误
本文链接:https://www.haomeiwen.com/subject/ajjfwdtx.html
网友评论