06-12-05 07:48 AM
i'm tring to download a file with arabic name using servlet .
i write this code
resp.setContentType("UTF-8");
resp.setContentType("application/binary");
String fileName=req.getParameter(PredefConstants.FILE_NAME_ATTACHED);
resp.setHeader("Content-Disposition", "attachment; filename=\"" + fileName +
"\";");//should be put in the srvlet
resp.getOutputStream().write(fileBytes);
it works fine for the file contents but
within the dialog that notify me to save the file its name appears not in ar
abic but other encoded prameter
so if any one can know how to solve thhis problem please notify me
i alos want to ask if there is a class related to ibm for downloading and up
oading and if yes how can i get it
thanks alot
[ Post a follow-up to this message ]
|