Python prints Unicode in Dict to Chinese
Import JSON
A = {u ' content ': {u ' address_detail ': {u ' province ': U ' \u5409\u6797\u7701 ', U ' city ': U ' \u957f\u6625\u5e02 ', U ' street_ Number ': U ', u ' district ': U ', u ' street ': U ', U ' city_code ': +, U ' point ': {u ' y ': U ' 43.89833761 ', U ' x ': U ' 125.31364243 '} , U ' address ': U ' \u5409\u6797\u7701\u957f\u6625\u5e02 '}, U ' status ': 0, U ' address ': U ' cn|\u5409\u6797|\u957f\u6625| none| Cernet|0|0 '}
Print Json.dumps (a). Decode (' Unicode-escape ')
Output:
{"Content": {"Address_detail": {"province": "Jilin Province", "City": "Changchun", "Street_number": "", "District": "", "Street": "", "City _code ":", "Address": "Jilin Province Changchun", "point": {"Y": "43.89833761", "X": "125.31364243"}}, "status": 0, "Address": "cn| Jilin | Changchun |n one| Cernet|0|0 "}
Python prints Unicode in Dict to Chinese