My servlet is building a file and the fileName contains special characters like Finnish/Swedish characters: Ä, ä, ö, etc.
While saving this file, in the Browser this filename gets converted to junk characters.
Please help me out with this situation. I want the fileName to be retained in the browser as sent by the Servlet.
Ping & DNS - updated with new look and Ping home screen widget
Joined: Feb 25, 2010
I am not forwarding the request to the web page. From servlet itself i am returning the file to the user, which gives the option of saving or opening of the file.
And on saving the file the fileName gets converted to junk characters.
I think if i forward the request to a jsp and then perform URLencoder.encode() on the filename, this might work. But, this is an existing application i can't modify the design.
I need to resolve this in the servlet itself.