camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: unicode characters broken with attachments?
Date Thu, 03 Sep 2009 05:07:06 GMT
Hi

And you have pasted the 2 mails 100% correct?


Without attachments. The copyright symbol have 2 bytes =C2 and =A9
> =09=09Thanks for the order of sportwagons and geeks.<br/><br/>Regards,<br/>=
>  =C2=A9 Camel Riders Bookstore<br/>


With attachment. The copyright symbol have only 1 byte: =A9
> =09=09Thanks for the order of sportwagons and geeks.<br/><br/>Regards,<br/>=
>  =A9 Camel Riders Bookstore<br/>

Do you mind trying with newer versions of Camel?
1.6.2-SNAPSHOT
2.0.0
http://camel.apache.org/download.html

The mail component have been changed since 1.6.1 release.


Or you can try the latest FUSE Camel 1.6.x release that is newer than
Camel 1.6.1.
http://davsclaus.blogspot.com/2009/02/how-to-use-fuse-releases-when-you-cant.html


On Thu, Sep 3, 2009 at 1:25 AM, tide08<sachin2_2k@yahoo.com> wrote:
>
> Here is how message source look like:
> 1) Without attachment
>
> Subject: Test Subject
> MIME-Version: 1.0
> Content-Type: text/html; charset=UTF-8
> Content-Transfer-Encoding: quoted-printable
>
> <html>
> =09<head>Dear Tuumas, Garr</head>
> =09<body>
> =09=09Thanks for the order of sportwagons and geeks.<br/><br/>Regards,<br/>=
>  =C2=A9 Camel Riders Bookstore<br/>
> =09</body>
> </html>
>
> 2) With attachment
>
> Subject: Test Subject
> MIME-Version: 1.0
> Content-Type: multipart/mixed;
>        boundary="----=_Part_0_28299220.1251929366870"
>
> ------=_Part_0_28299220.1251929366870
> Content-Type: text/html; charset=UTF-8
> Content-Transfer-Encoding: quoted-printable
>
> <html>
> =09<head>Dear Tuumas, Garr</head>
> =09<body>
> =09=09Thanks for the order of sportwagons and geeks.<br/><br/>Regards,<br/>=
>  =A9 Camel Riders Bookstore<br/>
> =09</body>
> </html>
> ------=_Part_0_28299220.1251929366870
> Content-Type: image/gif; name="cid:logo.gif"
> Content-Transfer-Encoding: base64
> Content-ID: logo.gif
> Content-Disposition: attachment; filename="cid:logo.gif"
>
> R0lGODlhbgAYAPcAAAAAAP///yMfICQgISUhIicjJCgkJSomJyklJisnKC4qKy8rLDMvMDIuLzEt
> LjUxMjg0NTczNDYyMzw4OTk1Nj46Oz05OkRAQUZCQ0tHSFJOTyIfICckJSwpKi8sLTMwMTo3ODk2
> Nz88PT47PERBQkE+P0A9PkhFRkdERUZDRFVSU1RRUlJPUE5LTE1KS19cXVxZWltYWVpXWFhVVlZT
> VGpnaGlmZ2dkZWRhYmNgYWJfYGBdXn16e3x5enh1dnVyc25rbISBgkdFRlVTVE1LTH99fn58fX17
> fKmnqKimp6elpp+dnpuZmpmXmJiWl5ORkpKQkZGPkI2LjIyKi4uJioWDhISCg7y6u7a0tbWztPX0
> 9e7t7ufm5+Df4N/e39jX2NLR0srJyr28vbu6u7a1tpeWlyMgICYjIyUiIi0qKiwpKSsoKDEuLjAt
> LTUyMjQxMTs4OD06OkNAQEI/P0lGRl5bW1hVVVdUVGViYk5MTGBeXlxaWlhWVnt5eXh2dnJwcHBu
> bmxqamtpaaOhoZyampGPj46MjIqIiImHh4eFhYOBgYF/f4B+fvb19e/u7ujn5+Lh4eHg4Nzb29va
> 2trZ2dbV1dXU1NTT09DPz8/Ozs7Nzc3MzMzLy8rJycnIyMjHx8bFxcXExMLBwcHAwMC/v7++vr69
> vbq5ubm4uLe2trSzs7OysrKxsbGwsLCvr62srKuqqqqpqaalpaWkpKSjo56dnZmYmJaVlZWUlI2M
> jImIiIWEhP7+/vz8/Pv7+/n5+fb29vPz8/Hx8ezs7Orq6unp6eXl5ePj49zc3NnZ2dbW1tDQ0MvL
> y8PDw////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
> AAAAAAAA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NDEQdr/CaEhomz1x
> M0HFuIHKQMu04UUXQigMq9CIxQGxxALNMQZlzAz/lEQKV3DGwAWgDRBKIxE8OARwJsObdYMxHKfR
> Kddt9ucVAzioBhRtNJgAGAEjOxAhCiBBLgV4fjGH3AFEAUgAhj0Z5SJ4B1CCKgEgwgAqx8TiQSwB
> FDGjACoY5yrjG5iB8uNmTHGSRhJM1KcZC3DBRQiCShGAETPzoWNBhwqEhR0tsDDLT1xQYbNAqMyy
> 4L3BBAFJAK3UQlAiCvIyCAt5qBBpAL0wRAFC84FWOMINm1kBcAzBnL4NBgEaWUQAhvAYF/xieg6o
> RB0eIwMdXW9mQwKf6ArSC+AURSC9WMgXELEHGuSgFh/TQiEUwYiWBUAURUgLaQJADF0EoQhrs8Qi
> acDSB0yUggqGYAIoGLELKwSBQAE4RRGqsIhC7Gwg4TuhFlniCFwYgRNGGeEWx/iRXvABOQT4BEmy
> SMY2QuQLZ0COABSxRjG68Y4N2cIE6CULkoQEj4CECCkwwAZFfO8jyUhGIBfJyEUGBAA7
> ------=_Part_0_28299220.1251929366870--
>
>
>
>
> tide08 wrote:
>>
>> I am using camel 1.6.1 and I have simple route, something like below:
>>
>> <camel:route>
>>             <camel:from uri="direct:send"/>
>>             <camel:to uri="velocity:someTemplate.vm" />
>>             <camel:to uri="smtp://mail.mycompany.com"/>
>> </camel:route>
>>
>> Problem is that when the message is sent with an attachment unicode
>> characters are broken and do not render correctly in mail client. If I
>> send the same message with NO attachments everything looks fine. So looks
>> like for unicode charcters to work with multipart it needs something
>> different?
>>
>> Here is my template like:
>> <html>
>>       <head>Dear ${lastName}, ${firstName}</head>
>>       <body>
>>               Thanks for the order of ${item}.<br/><br/>Regards,<br/>
${footer}<br/>
>>       </body>
>> </html>
>>
>> Here is the message like:
>>
>> body.put("firstName", "Garr");
>> body.put("item", "sportwagons and geeks");
>> body.put("lastName", "Tuumas");
>> body.put("footer", "\u00A9 Camel Riders Bookstore"); //Copyright symbol
>>
>> I used same message body and sent 2 different messages, one with
>> attachment and other one with no attachemnts. Velocity endpoint seems to
>> process it correctly in both the cases and body looks correct. But when it
>> gets displayed in mail client, the one with attachment is broken.
>>
>> Content-Type and Content-Transfer-Encoding for body part looks exactly
>> same in both scenario. Not sure if I need to do something special for
>> multipart or Is it bug in camel?
>>
>> Thanks!
>>
>
> --
> View this message in context: http://www.nabble.com/unicode-characters-broken-with-attachments--tp25267105p25267379.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Mime
View raw message