bug in desktop.browse(uri) ???
can I use desktop.browse(uri) to open a browser window if the uri has escaped characters in (Eg spaces or '#') ???
File w = new File("C:\\Output DOC\\Default_CSH.htm#1");
URI uri = w.toURI();
the toString() of the uri replaces ' ' with '%20' and replaces '#' with '%23'.
However the getPath() method returns the correct location.
But the browse option opens a browser at the address with the escaped characters in rather than the correct file path. Hence it cannot find the location and throws;
Failed to open file:/C:/Output%20DOC/Default_CSH.htm%231
Is this a bug?
Are there any solutions?