Java - Special URLs characters
<p>I have a function:</p>

<pre><code>public static ImageIcon GetIconImageFromResource(String path){
    URL url = ARMMain.class.getResource(path);
return new ImageIcon(url);
} 
</code></pre>

<p>It works great, but if I place my .JAR file onto for example <strong>C:\Ares!!!\myfile.jar</strong> it fails and I don't see my icons. I've observed that my URL is <strong>file:/C:/Ares!!!/myfile.jar!/com/test/images/img.png</strong>. So after JAR extension there is the <strong>!</strong> symbol! I think this is the main reason! What can I do to avoid this problem? Thanks.</p>
