dev.sixpack.api.rpc.NormalisationUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sixpack-sdk Show documentation
Show all versions of sixpack-sdk Show documentation
SDK to develop generators part of the Sixpack solution
The newest version!
package dev.sixpack.api.rpc;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
public abstract class NormalisationUtils {
public static String safe(String name) {
try {
return URLEncoder.encode(name, StandardCharsets.UTF_8.toString());
} catch (UnsupportedEncodingException e) {
throw new RuntimeException("WTF? UTF-8 is not supported?");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy