a = b'\xE6\x88\x91\xE6\x98\xAF\xE8\xAF\xB7\xE6\xB1\x82'
print(a.decode('utf-8').encode('utf-8'))
print(a.decode('gbk').encode('gbk'))
print(a.decode(encoding="utf-8", errors="strict"))
结果:
b'\xe6\x88\x91\xe6\x98\xaf\xe8\xaf\xb7\xe6\xb1\x82'
b'\xe6\x88\x91\xe6\x98\xaf\xe8\xaf\xb7\xe6\xb1\x82'
我是请求