I'm using the class.getResource(filename), where filename is the absolute path to a package.
It responds and gives me an url that is not null, but spaces and nonenglish symbols are replaced with lots of strange symbols when I print it out to System.out.println()
When I make a file with that url and check file.exists() it says false.
The path looks correct if I disregard the strange symbols.
Is there some way of doing this that is portable and ensures that I can retrieve a path that works, regardless of symbols on the path, and regardless if its in a jar or not? I never managed to get it working properly.
Or maybe the strange symbols aren't the problem, but what could it be then?
I'm running windows xp and using pathnames with nonenglish symbols in them.
please help.