当用户尝试在纯ie8中下载文件时,不是名称中包含多语言字符的兼容模式,它显示“fileAttachment”名称。
那个时候我用
header("Content-Disposition: attachment; filename*=UTF-8''".rawurlencode ($fileInfo['fileName']));
修复我正在使用的错误
header('Content-Disposition: attachment; filename="'.rawurlencode($fileInfo['fileName']).'"');
但这里的问题是所有多语言字符在所有浏览器中都转换为 url 编码形式。
有什么解决方案吗?