#14 RFC2047 Decoding is not correct

SharpMimeTools
open
Angel Marin
General (7)
5
2013-10-08
2011-12-27
Stef Heyenrath
No

This subject:
=?UTF-8?Q?Nog_8_dagen_kans_op_een_CITRO=C3=8BN_C1_?=

is not correctly decoded.

When I use http://mailsystem.codeplex.com : ActiveUp.Net.Codec.RFC2047Decode(header) it works correct.
Can you please check the RFC2047 decoding ?

Discussion

  • Raph
    Raph
    2013-10-08

    Hi,

    I have a similar issue with the decoding of this function, which is used as follows :
    subject = SharpMimeTools.parserfc2047Header(mime_message.Header.Subject);

    Hereunder a some mail titles --> and the deconding given by the function :
    Normal test --> Normal test
    RE: TEST é hello --> RE: TEST é hello
    RE: TE[ST é hello --> =?iso-8859-1?Q?RE:TE[ST=E9_hello?=
    RE: [TEST é hello --> =?iso-8859-1?Q?RE:[TEST=E9_hello?=
    RE: TE{ST é hello --> RE: TE{ST é hello
    RE: TE[ST hello --> RE: TE[ST hello
    RE: TE+ST é hello --> RE: TE+ST é hello

    It seems like the combinaison of accent and braquet is causing the mess.

    I have tested with the lastest available SharpMime version 0.6.beta).
    Thanks for any feedback, even though I doubt this Project is still alive ?

    Raph