Firefox download 乱码问题。

import javax.mail.internet.MimeUtility;
fileName = MimeUtility.encodeWord ( fileName );

response.addHeader("Content-Disposition", "attachment;filename=\"" + bean.getFileName() + "\";size=" + tempfile.length());

你可能感兴趣的:(download)