21,891
社区成员
发帖
与我相关
我的任务
分享
function ConvertStringCharset($String){
return iconv("ISO-8859-1","GB2312",$String);//转换成GB2312编码
}
$URL="/CSVfiles.csv";
$content="Provence-Alpes-Côte";
$content = ConvertStringCharset($content);
file_put_contents($URL,$content);
header("Content-Type: application/force-download");
header("Content-Disposition: attachment; filename=".$URL."");
readfile($URL);