各位大哥,我在下载文件时,出现了乱码。

各位大哥,我在下载文件时,出现了乱码。

各位大哥,我在下载文件时,出现了乱码。
情况是这样的。前面的处理代码就不多贴了大概就是这样的代码
header("Content-Disposition: attachment; filename=\"$download_name\"");
header("Content-Location: $download_name");
header("Content-Type: $mimeType");
header("Content-Length: $fsize");
header("Expires: 0");

当我这个$download_name是这样的名字的时候 测试.txt 的时候,
firefox: 可以得到正确的中文文件名
IE: 就是乱码的文件名

我试着加了这个函数 $download_name = urldecode($download_name);
这样下载出来的呢,
firefox: 类似于这样的代码了,没有解密的 %E5%9F%BA %E6%9C%AC%E5%8A%9F%E7%86%B1%E8%BA%AB.doc
IE: 可以得到正确的中文文件名,但是 "测 试.txt" 这样的文件就变成了 "测+试.txt"

有谁有好的解决办法没?