try
{
new URL(url);
+ url = URLEncoder.encode(url);
}
+ /* When we finally deprecate 1.1 compatibility,
+ * we can start to use URLEncoder.encode(url,"UTF-8")
+ * and then we'll need this catch:
+ * catch (UnsupportedEncodingException ex)
+ {
+ System.err.println("WARNING - IMPLEMENTATION ERROR - UNSUPPORTED ENCODING EXCEPTION FOR "+url);
+ ex.printStackTrace();
+ } */
catch (java.net.MalformedURLException ex)
{
url = viewport.applet.getCodeBase() + url;