(String s)
| 281 | } |
| 282 | |
| 283 | private static String encodeUtf8(String s) { |
| 284 | try { |
| 285 | return URLEncoder.encode(s, "UTF-8"); |
| 286 | } catch (Exception e) { |
| 287 | // Unlikely, for the possibility that "UTF-8" is not supported. |
| 288 | System.err.println("UTF-8 encoding not supported on this device."); |
| 289 | return s; |
| 290 | } |
| 291 | } |
| 292 | |
| 293 | public static String toMWSFilename(String in) { |
| 294 | in = StringUtils.stripAccents(in); |
no test coverage detected