python 3.5 - How to decode json data from api which contains unicode in python3? -


the data format shown in browser like:

"photos" : [             {                "height" : 3456,                "html_attributions" : [                   "\u003ca href=\"https:xxxx"                ]             }            ] 

when try put json file, pops error unicodeencodeerror: 'ascii' codec can't encode character, how should deal thing? please give me code example. thankssssssss!


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -