标签:class lse ict false enc pre dump decode code
问题:
json.dumps(dict) # {"a": "\u4e2d\u56fd"}
解决方法:
json.dumps(dic,ensure_ascii=False)
或
json.dumps(dic,ensure_ascii=False).decode("utf-8").encode("gb2312")
标签:class lse ict false enc pre dump decode code
原文地址:https://www.cnblogs.com/halili/p/11428326.html