当前位置:论坛首页 > BUG提交 > Linux面板

【已解答】ssh运行python经常命 报错,用putty连接不会报错?

发表在 BUG提交2020-10-25 02:25 [复制链接] 1 5739

  File "class/ssh_terminal.py", line 415, in recv
                                                      self._ws.send(result)
                                                                             File "/usr/lib/python2.7/site-packages/geventwebsocket/websocket.py", line 344, in send
                                                                    self.send_frame(message, opcode)
                                                                                                     File "/usr/lib/python2.7/site-packages/geventwebsocket/websocket.py", line 321, in send_frame
                                                                                                  message = self._encode_bytes(message)
                                     File "/usr/lib/python2.7/site-packages/geventwebsocket/websocket.py", line 82, in _encode_bytes
                                    return text.encode("utf-8")
                                                                 File "/usr/lib64/python2.7/encodings/utf_8.py", line 16, in decode
                                   return codecs.utf_8_decode(input, errors, True)
                                                                                  UnicodeDecodeError: 'utf8' codec can't decode byte 0xe2 in position 1023: unexpected end of data

使用道具 举报 只看该作者 回复
发表于 2020-10-26 10:28:38 | 显示全部楼层
您好,您这个是系统编码问题导致的,您可以更改下您的系统编码,一般都是utf8的编码
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表