Make sure to do the same for body and subject.
body.setContent(msgtext, "text/html;charset=utf-8");

Thanks,
Eirik Rude
http://www.i18now.com


On Tue, May 20, 2008 at 3:23 PM, Eirik Rude <[EMAIL PROTECTED]> wrote:

> Try setHeader("Content-Type","text/plain;charset=utf-8"); on your message
> for JavaMail.
>
> Thanks,
> Eirik Rude
> http://www.i18now.com
>
>
>
> On Tue, May 20, 2008 at 12:13 PM, Johan Compagner <[EMAIL PROTECTED]>
> wrote:
>
>> i think that is the place where you should look
>>
>> If you give it as a String to java mail then there is where the encoding
>> takes place.
>>
>> johan
>>
>> On Tue, May 20, 2008 at 5:21 PM, Piller Sébastien <[EMAIL PROTECTED]>
>> wrote:
>>
>> > Hi Johan,
>> >
>> > Well, I then use the string returned by StringResponse#toString on
>> > Javamail, with that code:
>> >
>> >   BodyPart htmlBodyPart = new MimeBodyPart();
>> >   htmlBodyPart.setContent(htmlBody, "text/html");
>> >   multipart.addBodyPart(htmlBodyPart);
>> >   ...
>> >
>> > Is it possible to be a javamail issue?
>> >
>> > I guess.... can you please confirm or infirm this?
>> >
>> >
>> > Thank you ;)
>> >
>> >
>> >
>> > Johan Compagner a écrit :
>> >
>> >> what are you doing with that StringResponse?
>> >> Because that string response still is just java so UTF
>> >> when that string is streamed or converted to bytes you should do
>> >> something..
>> >>
>> >> johan
>> >>
>> >>
>> >> On Mon, May 19, 2008 at 1:24 PM, Piller Sébastien <[EMAIL PROTECTED]>
>> >> wrote:
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>
>

Reply via email to