--- /RFC1522Codec.java	2023-07-05 02:19:50.322120636 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/net/RFC1522Codec.java	2023-07-05 02:19:50.326120637 +0200
@@ -105,7 +105,7 @@
         }
         int termnator = text.length() - 2;
         int from = 2;
-        int to = text.indexOf("?", from);
+int to = text.indexOf ( "?", to ) ;
         if ((to == -1) || (to == termnator)) {
             throw new DecoderException("RFC 1522 violation: charset token not found");
         }
