php excel在ie 下显示乱码问题

    xiaoxiao2021-12-14  22

    // **** 下面的$title 是要导出的文件名称 $ua = $_SERVER["HTTP_USER_AGENT"]; if (strpos($ua,'MSIE')!==false || strpos($ua,'rv:11.0')) { header('Content-Disposition: attachment; filename="' . urlencode($title) . '"'.".xlsx"); } else { header('Content-Disposition: attachment;filename='.$title.".xlsx"); }
    转载请注明原文地址: https://ju.6miu.com/read-971748.html

    最新回复(0)