php-imap
php-imap copied to clipboard
Chinese characters in email body
It seems like with UTF-16 charset, the email displays chinese characters in body. we are trying to solve by using:
mb_convert_encoding(base64_decode($message->getRawBody()), "UTF-8", "UTF-16LE")
which seems to work converting characters to the actual message