输出的地方已encode('utf-8'),为什么浏览器打开时还是乱码呢
fout.write('<td>%s</td>'%data['title'].encode('utf-8')) fout.write('<td>%s</td>'%data['summary'].encode('utf-8'))
fout.write('<td>%s</td>'%data['title'].encode('utf-8')) fout.write('<td>%s</td>'%data['summary'].encode('utf-8'))
2016-03-01
举报