imap icon indicating copy to clipboard operation
imap copied to clipboard

Error [E_WARNING] Unsupported charset "%SF_CHARSET%": mb_convert_encoding

Open Kulkow opened this issue 6 years ago • 3 comments

Error [E_WARNING] Unsupported charset "%SF_CHARSET%": mb_convert_encoding(): Illegal character encoding specified imap_alerts (0): imap_errors (0):

Kulkow avatar Mar 28 '19 09:03 Kulkow

cant catch Exeption

Kulkow avatar Mar 28 '19 09:03 Kulkow

Hi, may you post here the original raw email that originated the error (with sensitive data stripped)? Otherwise I cannot help much.

Slamdunk avatar Mar 28 '19 10:03 Slamdunk

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');

Henk8 avatar Sep 13 '19 07:09 Henk8