We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
两种
$text = '2024年4月15日商品导出'; $filename = mb_convert_encoding($text, "GBK", "UTF-8").'.txt'; // a filename in Chinese characters header('Content-Type: application/octet-stream'); header('Content-Disposition: filename='.$filename); readfile(realpath('../think')); exit();
$filename = '2024年4月5日中文文件名.txt'; // a filename in Chinese characters $contentDispositionField = 'Content-Disposition: attachment; ' . sprintf('filename="%s"; ', rawurlencode($filename)) . sprintf("filename*=utf-8''%s", rawurlencode($filename)); header('Content-Type: application/octet-stream'); header($contentDispositionField); readfile(realpath('../think')); exit();
The text was updated successfully, but these errors were encountered:
No branches or pull requests
两种
The text was updated successfully, but these errors were encountered: