All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.sixpack.api.rpc.NormalisationUtils Maven / Gradle / Ivy

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