com.infomaximum.platform.utils.EscapeUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform Show documentation
Show all versions of platform Show documentation
Library for creating a light platform
package com.infomaximum.platform.utils;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
public class EscapeUtils {
public static String escapeFileNameFromContentDisposition(String filename) {
return URLEncoder.encode(filename, StandardCharsets.UTF_8).replaceAll("\\+", "%20");
}
}