javascript - jquery: how to decode the stringized utf-8 character? -
my python server uses json.dumps() dump json object string, converts binary utf-8 code not ascii, stringized thing, "\u4e2d". client see string, there api convert "\u4e2d" utf-8 character?
in jquery can use $.parsejson
decode json-formatted object. includes decoding encoded characters. using datatype: 'json'
$.ajax
(or $.post
) or using $.getjson
if trying make ajax requests.
Comments
Post a Comment