php-imap-client
php-imap-client copied to clipboard
mb_convert_encoding(): Illegal character encoding specified
Hi, Can you please help me, I think this is a bug:
Steps to reproduce:
- Connected via POP3/IMAP to a maibox
- Selected INBOX folder
- request: ->getMessagesByCriteria('', 50)
- Exception Error is catched to an email: yii\base\ErrorException Object ( [message:protected] => mb_convert_encoding(): Illegal character encoding specified [string:Exception:private] => [code:protected] => 2 [file:protected] => C:\Work\wamp64\www\workflow-assistant\vendor\ssilence\php-imap-client\ImapClient\IncomingMessage.php [line:protected] => 392 )
charset = null
https://www.screencast.com/t/n1rY50Djume
Did you ever get anywhere with this? I'm having the same problem. Line 400 of IncomingMessage.php is failing:
$objNew->text = quoted_printable_decode(mb_convert_encoding( $objNew->plain, "utf-8", $objNew->plain->charset ));
Check following comment: https://github.com/SSilence/php-imap-client/issues/251#issuecomment-849521509
I am having the same issue:
mb_convert_encoding(): Illegal character encoding specified in IncomingMessage.php line 400
$objNew->text = quoted_printable_decode(mb_convert_encoding( $objNew->plain, "utf-8", $objNew->plain->charset ));