(String str)
| 8197 | |
| 8198 | |
| 8199 | static public String urlEncode(String str) { |
| 8200 | try { |
| 8201 | return URLEncoder.encode(str, "UTF-8"); |
| 8202 | } catch (UnsupportedEncodingException e) { // oh c'mon |
| 8203 | return null; |
| 8204 | } |
| 8205 | } |
| 8206 | |
| 8207 | |
| 8208 | // DO NOT use for file paths, URLDecoder can't handle RFC2396 |
no outgoing calls
no test coverage detected