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

QuotedPrintable decoding broken #9

Open
habbler opened this issue Aug 5, 2015 · 0 comments
Open

QuotedPrintable decoding broken #9

habbler opened this issue Aug 5, 2015 · 0 comments

Comments

@habbler
Copy link

habbler commented Aug 5, 2015

Consider "Wohnfl=C3=A4che". Here "=C3=A4" is one unicode charachter.
However the decode function in module Codec-MIME-QuotedPrintable puts them in two different characters of String (unicode String).
Then in processBody in module Codec-MIME-Parse we have
T.pack $ decodeBody (T.unpack v) $ T.unpack body
which makes the corruption complete.

This is a nasty error which hits normal Mime emails contains html (which are naturally encoded in UTF8).

@habbler habbler changed the title QP decoding broken QuotedPrintable decoding broken Aug 5, 2015
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

1 participant