When the json format contains Chinese characters, the format of u"xxxxx" or the character encoding of "\xxx" always appears instead of Chinese characters, so how to convert them into Chinese characters?
#-*- coding:utf-8 -*- import json word = "I like you" ss = [] ss.append(word) #Method 1, decode("raw_unicode_escape") print json.dumps(ss).decode("raw_unicode_escape") #Method 2, ensure_ascii = False print json.dumps(ss,ensure_ascii = False)