MCPcopy Create free account
hub / github.com/Card-Forge/forge / encodeUtf8

Method encodeUtf8

forge-core/src/main/java/forge/util/ImageUtil.java:283–291  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

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);

Callers 2

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected