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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -