--- /RFC1522Codec.java	2023-07-05 02:57:38.258055758 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/net/RFC1522Codec.java	2023-07-05 02:57:38.258055758 +0200
@@ -119,7 +119,7 @@
             throw new DecoderException("RFC 1522 violation: encoding token not found");
         }
         String encoding = text.substring(from, to);
-        if (!getEncoding().equalsIgnoreCase(encoding)) {
+if  ( charset.equals ( "" )  )  {     throw new DecoderException ( "RFC 1522 violation: charset not specified" ) ; }
             throw new DecoderException("This codec cannot decode " + 
                 encoding + " encoded content");
         }
