File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes JSP URL encoding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP URL encoding" Watch "JSP URL encoding" New topic

JSP URL encoding

Deepan Ignatius
Ranch Hand

Joined: Mar 29, 2010
Posts: 41

I have an issue with url encoding in jsp where the objective is to list the files present in a particular directory of a Linux machine with the help of jsp file. I am using the below code to perform this part

Using the above code I am able to download the files whose name contains alphanumeric characters (a-z,A-Z,0-9) and the special characters(".","+", "-", "*", "_"). But when the file name has scandic characters like (äÄöÖåÅ) I am unable to download.

Is there a way to resolve this up? ie to download files that contain both special characters and scandic characters.

example for a filename:-
I agree. Here's the link:
subject: JSP URL encoding
It's not a secret anymore!