1.声明一个dictxp={"xname":self.xname,"xpwd":self.pwd}
2.这里面self.xname 传入的是中文 周杰伦,但是打印出来类似xe9x80x80xe5,json.loads失败,
3.针对self.xname做过encode decode,不管怎么弄,后面都是json.loads失败
4.请问大家如何在dict里面self.xname 也会呈现中文字符? 谢谢
1.声明一个dictxp={"xname":self.xname,"xpwd":self.pwd}
2.这里面self.xname 传入的是中文 周杰伦,但是打印出来类似xe9x80x80xe5,json.loads失败,
3.针对self.xname做过encode decode,不管怎么弄,后面都是json.loads失败
4.请问大家如何在dict里面self.xname 也会呈现中文字符? 谢谢
2 回答5.1k 阅读✓ 已解决
2 回答1.1k 阅读✓ 已解决
4 回答1.4k 阅读✓ 已解决
3 回答1.3k 阅读✓ 已解决
3 回答1.2k 阅读✓ 已解决
1 回答1.7k 阅读✓ 已解决
1 回答1.2k 阅读✓ 已解决
类似问题。传送门:https://segmentfault.com/q/10...