list 乱码

data_list = ["中文"]
print str(data_list).decode("string_escape")

mysql 获取中文乱码

db = MySQLdb.connect(host="zxx", port=3306, user="root", passwd="1234", db="xxx",charset='utf8')

设置charset='utf8'

相关文章:

  • 2021-06-04
  • 2021-09-23
  • 2022-03-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-10
  • 2021-11-24
  • 2021-11-27
  • 2021-10-28
  • 2021-04-27
  • 2022-01-03
  • 2021-10-12
相关资源
相似解决方案