2007/5/8, Kapil Sharma <[EMAIL PROTECTED]>:
Hii I am using struts, jboss 4.0.1 and downloading file from the JSP as an atachment.. My file has japanese and chinese characters... The problem is that when i m directly opening this file on the fly from the Dialog box by clicking on the open button, it is showing me some characters like %3s or something like.
Do you mean in the browser? The %xx characters are special characters encoded for URLs. By the way, what's your browser/operating system? These characters are appearing file on the dialog box and also saving the
file is OK but i don't know why they get something like while opening on the fly
Sorry, I can't understand. The opened file has the correct filename or not? And the saved file?
try { fileName = new String(fileName.getBytes("ISO-8859-1"), "UTF-8");
Why do you get bytes as ISO-8859-1 and reencode them as UTF-8? It does not make sense! Antonio