aspose file tools*
The moose likes JSP and the fly likes URLEncoder / Unix Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "URLEncoder / Unix" Watch "URLEncoder / Unix" New topic
Author

URLEncoder / Unix

Chris Baron
Ranch Hand

Joined: Mar 21, 2003
Posts: 1049
Hi,
would this be a Unix-conform name for a directory ?

i'am planning to use the paths as hyperlinks and the substringed directorynames for Navigation in a webapp.
The above String is encoded with URLEncoder.encode( "������ ?�&%-_!�$%&/()=?", "UTF-8" ) [may some special characters will be displayed different in your Browser]
On windows i dont have Problems to call a directory like this...would i on Unix ?
I don't have Linux machine at hand. Could someone try out, please ?
Thanks cb
[ March 28, 2003: Message edited by: Christian Baron ]
[ March 28, 2003: Message edited by: Christian Baron ]
Chris Baron
Ranch Hand

Joined: Mar 21, 2003
Posts: 1049
Hi,
only in case someone is searching for this:
i found out that you generally may name a directory in unix as you like, but "." and " " could cause Probs. And, of course..., the "/" is reserved.
URLEncoder encodes all special characters except "."
So i may give names with spaces and special characters exept "."
cb
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URLEncoder / Unix