We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Current result: test 123 ir lietuviÅ¡kos raidÄ�s Expected: test 123 ir lietuviškos raidės
test 123 ir lietuviškos raid�s
test 123 ir lietuviškos raidės
Possible solution (partly tested):
/** * Decodes IMAP encoded string (RFC2047) * * @param string $string * * @return string */ public function decodeImapString($string) { $result = array(); $parts = imap_mime_header_decode($string); foreach ($parts as $part) { if ($part->charset == 'default') { $result[] = $part->text; } else { $result[] = mb_convert_encoding($part->text, 'UTF-8', $part->charset); } } return implode($result); }
This logic should be applied to header lines (including attachment names)
The text was updated successfully, but these errors were encountered:
7faf652
No branches or pull requests
Current result:
test 123 ir lietuviškos raid�s
Expected:
test 123 ir lietuviškos raidės
Possible solution (partly tested):
This logic should be applied to header lines (including attachment names)
The text was updated successfully, but these errors were encountered: