Quoted Printable UTF-8 part

51 views
Skip to first unread message

Peyo Baillet

unread,
Jun 10, 2013, 7:32:29 AM6/10/13
to mail...@googlegroups.com
Hi,

I'm using the library to decode email content and do various things with this data. I've found a weird scenario in which it seems something's wrong in the way Mail decodes a part:

--51b0af1e_5072367_17cf9
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
plap
-- =20
Pierre Baillet
Envoy=C3=A9 avec un grand =C3=A9cran.

This part of the message, when retrieved using "message.text_part.body.decoded" gives an "Encoding:ASCII-8BIT" encoded string and this creates issues (later, at display, for example) because the part actually contains UTF-8. Am I doing something wrong when decoding the part ?
I'm using mail 2.5.3 on ruby 1.9.3p194 .

Thank you for Mail :)
-- 
Pierre.
Reply all
Reply to author
Forward
0 new messages