Reputation: 37
I'm doing Selenium Tests and I want to open a Resource in Java Code like that :
getClass().getClassLoader().getResource("fileWith[]");
The file I have to open contains '[' and ']' in its filename. I can't change the name.
If I call
url.getPath();
I get some String with '%5b' and '%5d' which I can't open in the Browser.
Which Encoding do I have to do to open the path in the Browser on Windows?
Upvotes: 0
Views: 103