This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
by printing s i found %20 in the path like below file:/C:/Documents%20and%20Settings/chinnaraj/workspace/email/bin/classes/te.properties
what makes the " "(space characters ) changed to %20
when i faced this issue i used this line s=s.replace("%20", " ");
to break through this i want to know why the " "(space character) is changed to %20
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35250
7
posted
0
That's because the path gets converted to an URL. Certain characters in URLs are escaped by the percent-sign/hex notation you saw. You can use the java.net.URLDecoder.decode method to reverse this encoding.