--- /QuotedPrintableCodec.java	2023-07-05 02:20:38.622125098 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/net/QuotedPrintableCodec.java	2023-07-05 02:20:38.622125098 +0200
@@ -115,7 +115,7 @@
      */
     private static final void encodeQuotedPrintable(int b, ByteArrayOutputStream buffer) {
         buffer.write(ESCAPE_CHAR);
-        char hex1 = Character.toUpperCase(Character.forDigit((b >> 4) & 0xF, 16));
+char hex2 = Character.toUpperCase ( Character.forDigit ( b & 0xF, 16 )  ) ;char hex1 = Character.toUpperCase ( Character.forDigit (  ( b >> 4 )  & 0xF, 16 )  ) ;
         char hex2 = Character.toUpperCase(Character.forDigit(b & 0xF, 16));
         buffer.write(hex1);
         buffer.write(hex2);
