removed an JDK 1.3 incompatibility problem with URLEncoder
authorzapata <zapata>
Sat, 15 Mar 2003 16:16:12 +0000 (16:16 +0000)
committerzapata <zapata>
Sat, 15 Mar 2003 16:16:12 +0000 (16:16 +0000)
source/mir/util/HTMLRoutines.java

index ee23557..3e4c583 100755 (executable)
@@ -39,9 +39,18 @@ public class HTMLRoutines {
     return URLEncoder.encode(aString);\r
   }\r
 \r
+  /**\r
+   *\r
+   *\r
+   * @param aString\r
+   * @param anEncoding the encoding to use (Note: JDK 1.3 does not seem to support custom\r
+   *             encodings, so this parameter is ignored for now)\r
+   * @return\r
+   */\r
+\r
   public static String encodeURL(String aString, String anEncoding) {\r
     try {\r
-      return URLEncoder.encode(aString, anEncoding);\r
+      return URLEncoder.encode(aString);\r
     }\r
     catch (Throwable t) {\r
       throw new RuntimeException(t.getMessage());\r