0
我想字節數組json.JSONDecoderJSONDecoder編解碼器不能解碼字節0xe0的
解碼decoder = json.JSONDecoder()
result, index = decoder.raw_decode(data)
但有時我得到錯誤UnicodeDecodeError: 'utf8' codec can't decode byte 0xe0 in position 1: unexpected end of data
有沒有人有一個線索,什麼是錯的,我需要通過JSONDecoder構造函數的其他參數?
您的JSON輸入中有無效數據。 「數據」值來自哪裏? –