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'
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'