Python character garbled

content = b'{"log_id": 5507183146687669657, "words_result_num": 2, "words_result": [{"location": {"width": 154, "top": 102, "left": 216, "height": 53}, "words": "\xe5\x8f\xa5\xe7\x9c\x9f\xe8\xa9\xb1"}, {"location": {"width": 198, "top": 148, "left": 168, "height": 20}, "words": "\xe8\x83\xbd\xe6\xaf\x94\xe6\x95\xb4\xe5\x80\x8b\xe4\xb8\x96\xe7\x95\x8c\xe7\x9a\x84\xe5\x88\x86\xe9\x87\x8f\xe9\x82\x84\xe9\x87\x8d"}]}'

 

Solution:

content = content.decode('UTF-8')

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325396365&siteId=291194637