Fetch icon indicating copy to clipboard operation
Fetch copied to clipboard

Encoding lower/uppercase

Open dratel29 opened this issue 8 years ago • 5 comments

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.

dratel29 avatar Aug 13 '15 11:08 dratel29

@dratel29 can you test with https://github.com/linniksa/Fetch/commits/patch-generalize-charset-convert ?

linniksa avatar Aug 28 '15 13:08 linniksa

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

klammbueddel avatar Sep 15 '15 21:09 klammbueddel

+1. Please merge that commit from @linniksa.

adriansuter avatar Sep 26 '15 22:09 adriansuter

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

wiiiteek avatar Jan 26 '16 11:01 wiiiteek

#173 fixes this

tomsommer avatar Apr 20 '17 18:04 tomsommer