diff --git a/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/core/MimeUtils.java b/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/core/MimeUtils.java index 667386b393..d8dce3c966 100644 --- a/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/core/MimeUtils.java +++ b/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/core/MimeUtils.java @@ -70,8 +70,8 @@ final class MimeUtils { MIME2JAVA.put("ja_jp.eucjp", "EUCJIS"); MIME2JAVA.put("euc-kr", "KSC5601"); MIME2JAVA.put("euckr", "KSC5601"); - MIME2JAVA.put("us-ascii", "ISO-8859-1"); - MIME2JAVA.put("x-us-ascii", "ISO-8859-1"); + MIME2JAVA.put("us-ascii", StandardCharsets.ISO_8859_1.name()); + MIME2JAVA.put("x-us-ascii", StandardCharsets.ISO_8859_1.name()); } /**