admin\applications\core\sources\classes\attach\class_attach.php
查找:
PHP 代码:
header( "Content-Disposition: attachment; filename=\"{$attach['attach_file']}\"" ); 替换为:
PHP 代码:
/* attach name covertCharsets */
// header( "Content-Disposition: attachment; filename=\"{$attach['attach_file']}\"" );
header( "Content-Disposition: attachment; filename=\"" . @iconv( "utf-8", $charset, $attach['attach_file'] ) . "\"" ); 注:使用了iconv函数
也可以使用urlencode,缺点是空格变成了+号
PHP 代码:
header( "Content-Disposition: attachment; filename=\"" . urlencode($attach['attach_file']) . "\"" );

说明
转载到专栏








