(String str)
| 240 | } |
| 241 | |
| 242 | public static String URLEncode(String str) { |
| 243 | String result = ""; |
| 244 | if (null == str) { |
| 245 | return ""; |
| 246 | } |
| 247 | try { |
| 248 | result = java.net.URLEncoder.encode(str, "UTF-8"); |
| 249 | } catch (UnsupportedEncodingException e) { |
| 250 | stdout.println(e.getMessage()); |
| 251 | } |
| 252 | return result; |
| 253 | } |
| 254 | |
| 255 | public static String URLDecode(String str) { |
| 256 | String result = ""; |