ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128)] 错误: 实例 "linux-core" 执行所请求操作失败,实例处于错误状态.: 请稍后再试 [错误: 'ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128)]…
今天在验证字符串是否包含的时候报错:UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 12: ordinal not in range(128) 原因是python的str默认是ascii编码,和unicode编码冲突,就会报这个错误. 解决办法: import sys reload(sys) sys.setdefaultencoding('utf8')…
[root@linux-node1 桌面]# salt-key [ERROR ] 'ascii' codec can't decode byte 0xe6 in position 6: ordinal not in range(128) Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/salt/utils/parsers.py", line 210, in parse_args proc…