On Thu, Mar 4, 2010 at 12:53 PM, David Jencks <[email protected]> wrote: > > > /var/folders/J0/J041U4tbGqeIsK+mFxmskk+++TI/-Tmp-/geronimo-fileutils5636892370741293365.tmpfile > > toURI().toURL() gives > > file:/var/folders/J0/J041U4tbGqeIsK+mFxmskk+++TI/-Tmp-/geronimo-fileutils5636892370741293365.tmpfile > > which felix URLDecoder.decodes to > > reference:file:/var/folders/J0/J041U4tbGqeIsK mFxmskk > TI/-Tmp-/geronimo-fileutils5636892370741293365.tmpfile > > (note the spaces) > > URLEncoder.encode gives > > %2Fvar%2Ffolders%2FJ0%2FJ041U4tbGqeIsK%2BmFxmskk%2B%2B%2BTI%2F-Tmp-%2Fgeronimo-fileutils5636892370741293365.tmpfile > which decodes to the original. > > I think felix is wrong.... WDYT?
Yeah, I agree. I think felix should probably be using the URI class to decode the location (e.g. something like (new URI(location)).getPath()) Jarek
