Error [E_WARNING] Unsupported charset "%SF_CHARSET%": mb_convert_encoding
Error [E_WARNING] Unsupported charset "%SF_CHARSET%": mb_convert_encoding(): Illegal character encoding specified imap_alerts (0): imap_errors (0):
cant catch Exeption
Hi, may you post here the original raw email that originated the error (with sensitive data stripped)? Otherwise I cannot help much.
In my case it fails because the charset is recognized as ISO-8859.
The 'raw' email is something like this:
------=_NextPart_002_0093_643A9605.B6D34AC7 Content-Type: text/plain; charset="ISO-8859" Content-Transfer-Encoding: 7bit
------=_NextPart_002_0093_643A9605.B6D34AC7 Content-Type: text/html; charset="ISO-8859" Content-Transfer-Encoding: quoted-printable
------=_NextPart_002_0093_643A9605.B6D34AC7--
It fails on: $decodedText = \mb_convert_encoding($text, 'UTF-8', 'ISO-8859');