UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc5 in position 13: invalid continuation byte

Traceback (most recent call last):
  File "C:/Users/Desktop/客户端.py", line 32, in <module>
    print(recv_data.decode('utf-8'))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc5 in position 13: invalid continuation byte

是因为 编码问题 

修改为

print(recv_data.decode('gbk'))

 

posted @ 2021-03-10 21:34  流年中渲染了微笑  阅读(486)  评论(0编辑  收藏  举报