Php Chinese text name download garbled solution. There are many solutions to solve Chinese garbled text. one is the url encoding method such as urlencode, and the other is the following header processing method using the binary method .? Php Tutorial $ file_nameurlencod there are many solutions to solve Chinese garbled text. one is the url encoding method such as urlencode, and the other is the following header processing method in binary.
$ File_name = urlencode ($ _ REQUEST ['filename']);
Header ("Pragma: public"); header ("Expires: 0 ");
Header ("Cache-Control: must-revalidate, post-check = 0, pre-check = 0 ");
Header ("Content-Type: application/force-download ");
Header ('content-Type: application/vnd. ms-excel; charset = utf-8 ');
Header ("Content-Transfer-Encoding: binary ");
Header ('content-Disposition: attachment; filename = '. $ file_name );
Echo strips tutorial lashes ($ _ REQUEST ['content']);
?>
Bytes. ? Php Tutorial $ file_name = urlencod...