|
tellyouThank you very much, but I just tried your test code, the result is the same, UTF-8 is eight-bit, certainly not possible, I used several other methods, the output is correct, but the download is still Garbled:
<% @ page pageEncoding = "GBK" contentType = "application / octet-stream"%>
<% String filename = new String (("ahhh.jar"). GetBytes ("GB2312"), "GBK");%>
<%
response.setHeader ("Pragma", "No-cache");
response.setHeader ("Cache-Control", "no-cache");
response.setDateHeader ("Expires", 0);
response.setHeader ("Content-Disposition", "attachment; filename =\" "+ filename +"\"");%>
<% out.write (65); out.write (66);%>
<% out.flush ();%>
<% System.out.println (new java.util.Date () + "/" + filename);%> |
|