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 也会呈现中文字符? 谢谢
4 回答4.5k 阅读✓ 已解决
1 回答3.2k 阅读✓ 已解决
4 回答3.8k 阅读✓ 已解决
3 回答2.2k 阅读✓ 已解决
1 回答4.4k 阅读✓ 已解决
1 回答3.9k 阅读✓ 已解决
1 回答2.8k 阅读✓ 已解决
类似问题。传送门:https://segmentfault.com/q/10...