My python server uses json.dumps() to dump the json object into the string, but it also converts the binary utf-8 code which is not ascii, into the stringized thing, like “\u4e2d”. So what my client see is this string, is there any api to convert “\u4e2d” back to utf-8 character?
Share
In jQuery you can use
$.parseJSONto decode a JSON-formatted object. That includes decoding encoded characters. UsingdataType: 'json'with$.ajax(or$.post) or using$.getJSONwill do that for you if you are trying to make AJAX requests.