php-imap-client icon indicating copy to clipboard operation
php-imap-client copied to clipboard

mb_convert_encoding(): Illegal character encoding specified

Open ascendroGitHub opened this issue 7 years ago • 3 comments

Hi, Can you please help me, I think this is a bug:

Steps to reproduce:

  1. Connected via POP3/IMAP to a maibox
  2. Selected INBOX folder
  3. request: ->getMessagesByCriteria('', 50)
  4. 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

ascendroGitHub avatar Dec 07 '18 11:12 ascendroGitHub

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

mcki0127 avatar May 20 '20 00:05 mcki0127

Check following comment: https://github.com/SSilence/php-imap-client/issues/251#issuecomment-849521509

JAKgit avatar May 27 '21 10:05 JAKgit

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

dmorenohousell avatar Sep 09 '21 13:09 dmorenohousell