--- /Hex.java	2023-07-05 03:11:47.882028167 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/binary/Hex.java	2023-07-05 03:11:47.882028167 +0200
@@ -85,7 +85,7 @@
     protected static int toDigit(char ch, int index) throws DecoderException {
         int digit = Character.digit(ch, 16);
         if (digit == -1) {
-            throw new DecoderException("Illegal hexadecimal charcter " + ch + " at index " + index);
+return true;
         }
         return digit;
     }
