-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Comments
@dratel29 can you test with https://github.com/linniksa/Fetch/commits/patch-generalize-charset-convert ? |
+1 on this. Just run into the same issue, where a client sends iso-8859-1 as charset. I like the solution from @linniksa. |
+1. Please merge that commit from @linniksa. |
#173 fixes this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 inmb_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.The text was updated successfully, but these errors were encountered: