Currently, the unquotePrintable function does not handle cases where a Unicode character is split across two lines, as demonstrated in the following example:

This causes incorrect parsing of the input:

To address this issue, I propose modifying the unquotePrintable function to support Unicode characters with line breaks. The updated function includes a non-capturing group (?:(?:=)?\r?\n)? that matches an optional equal sign =?, followed by an optional carriage return \r? and a newline character \n. The non-capturing group is made optional using the ? at the end.
With this change, the function can successfully parse the example shown in the image:

Please review the proposed changes and let me know if you have any suggestions or concerns. I am looking forward to your feedback and improving the functionality of the unquotePrintable function.
Currently, the
unquotePrintablefunction does not handle cases where a Unicode character is split across two lines, as demonstrated in the following example:This causes incorrect parsing of the input:
To address this issue, I propose modifying the
unquotePrintablefunction to support Unicode characters with line breaks. The updated function includes a non-capturing group(?:(?:=)?\r?\n)?that matches an optional equal sign=?, followed by an optional carriage return\r?and a newline character\n. The non-capturing group is made optional using the?at the end.With this change, the function can successfully parse the example shown in the image:
Please review the proposed changes and let me know if you have any suggestions or concerns. I am looking forward to your feedback and improving the functionality of the
unquotePrintablefunction.