PHP输出CSV文件出现乱码问题
摘要:
问题:PHP输入用户列表为csv文件,用excel打开显示为乱码,用记事本或ue打开正常.查看文件编码显示为utf-8解决:function down_file($filepath,$filename){if(!file_exists($filepath)){echo "backup error ,download file no exist";exit();}ob_end_clean();header('Content-Type: application/download');header("Content-type: text/csv" 阅读全文
posted @ 2012-10-11 15:42 我真不是程序员 阅读(347) 评论(0) 推荐(0)
浙公网安备 33010602011771号