Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URLEncoder / Unix

 
Chris Baron
Ranch Hand
Posts: 1061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic