[Yanel-dev] [Bug 5325] Import Site doesn't work on Windows

bugzilla-daemon at bugzilla.wyona.com bugzilla-daemon at bugzilla.wyona.com
Wed May 2 03:11:58 CEST 2007


http://bugzilla.wyona.com/cgi-bin/bugzilla/show_bug.cgi?id=5325





------- Additional Comments From jonathan.addison at wyona.com  2007-05-02 03:11 -------
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4466485

This bug report for Java summarizes the problem:

Work Around  	
===========
None.  You will have to manually parse the file location string returned by
getClass().getResource("myfile").getFile() to translate %20 to space characters.
======================================================================

No, there is a workaround.  Instead of doing this:

    FileInputStream fis = new FileInputStream(url.getFile());

you can force any %-escaped characters to be decoded by first converting the
URL to a URI, and then using the path component of the URI as the filename:



------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.



More information about the Yanel-development mailing list