Skip to content
New issue

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

Encoding lower/uppercase #148

Open
dratel29 opened this issue Aug 13, 2015 · 5 comments
Open

Encoding lower/uppercase #148

dratel29 opened this issue Aug 13, 2015 · 5 comments

Comments

@dratel29
Copy link

Some mail clients report the encoding in lowercase ('koi8-r' for Yandex.ru, for instance). This causes an error in Message::processStructure since it appears in uppercase in mb_list_encodings(). The resulting fallback to UTF-8 makes the final message unreadable.

I suggest testing for both lower and uppercase versions of the encoding's name, because mb_convert_encoding seems perfectly fine with both versions.

@linniksa
Copy link
Contributor

@klammbueddel
Copy link

+1 on this. Just run into the same issue, where a client sends iso-8859-1 as charset. I like the solution from @linniksa.

@adriansuter
Copy link

+1. Please merge that commit from @linniksa.

@wiiiteek
Copy link

+1 on this. Same issue here. @tedivm please merge commit from @linniksa

This was referenced Feb 17, 2016
@tomsommer
Copy link
Contributor

#173 fixes this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants