tedious / Fetch

An IMAP library for PHP

Home Page:http://www.tedivm.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

windows-1255 encoding fails

tomsommer opened this issue · comments

Messages with windows-1255 encoding trigger an error:

Warning: mb_convert_encoding(): Illegal character encoding specified in ... /vendor/tedivm/fetch/src/Fetch/Message.php on line 485

Without the source email this will be difficult to resolve.

I think the solution is:
http://www.php.net/manual/en/function.imap-utf8.php#102081

So it needs to be added to the decoding of the subject and addresses decoding

Maybe #115 might help

Character encoding has been updated with the current release. I'm asking that people submit new tickets for any bugs that they find.