首页
IT
登录
6mi
u
盘
搜
搜 索
IT
php excel在ie 下显示乱码问题
php excel在ie 下显示乱码问题
xiaoxiao
2021-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
)