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
Joined: Mar 22, 2005
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.