in IE to download the attachment before you empty the cache, Chinese file name to use UrlEncode encoding, there is a good example, the need for friends can refer to the following
Key: 1, empty the cache before downloading the attachment in IE. 2, Chinese file name to be encoded with UrlEncode. Code as follows: Header ("Pragma:"); If not, IE will prompt the target host can not access Header ("Cache-control:"); If not, IE will prompt the target host to be unable to access header ("Content-type: $type"); header ("accept-ranges:bytes"); header (" Content-transfer-encoding:base64 "); Header (" Accept-length: "). FileSize ($path _c)); Header ("content-disposition:attachment; Filename= ". UrlEncode ($filename)); In IE without urlencode Chinese name will appear garbled ReadFile ($path _c); exit; or code as follows: Header (' Content-description : File Transfer '); header (' Content-type:application/octet-stream '); header (' Content-disposition: attachment; Filename= '. UrlEncode (basename ($file))); In IE without urlencode Chinese name will appear garbled header (' content-transfer-encoding:binary '); Binary transmission Header (' expires:0 '); header (' Cache-control:must-revalidate, post-check=0, pre-check=0 '); If not, IE will prompt the target host can not access header (' pragma:public '); If not, IE will prompt the target host to be unable to access header (' ConTent-length: '. FileSize ($file)); Ob_clean (); flush (); ReadFile ($file); exit;