【发布时间】:2020-04-27 15:57:33
【问题描述】:
我尝试解码这个非常简单的变量b'autorite nt\\syst\x8ame\r\n'
b'autorite nt\\syst\x8ame\r\n'
>>> t.decode('utf-8')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8a in position 16: invalid start byte
但没有任何效果,它应该打印 autorite nt\\système 但我找不到正确打印它的方法
【问题讨论】:
标签: python python-3.x utf-8 character-encoding