tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Ross <>
Subject Re: Need help in sending mail using UTF-8
Date Thu, 15 Jun 2006 18:30:07 GMT
Assuming your creating a j2ee complaint app, after some rather
exhaustive testing and re-testing, I found that adding this to your
web.xml seems to be a pretty generic solution:


If this works in every case, I don't know. I simply don't have the
timewidth to make definitive conclusions. This worked for me in a
way that seems like its pretty generic though. Adding any number of
headers to the request stream just seemed to produce nothing legitimate
in my case(s). And I do a lot of Asian encoding, being a squeeker of
Japanese. Good luck.

At 09:20 AM 6/14/2006, you wrote:
>I m trying to send a mail with chinese characters using Apache Mailer. So, 
>I need to set the charset as UTF-8.
>In my JSP, I m setting the header as <MailTagLib:header 
>name="content-type" value="text/html;charset=UTF-8" />. This is inside 
><mail> tag and before <send> tag. But when the mail is sent, I dont see 
>the mail with Chinese characters. Instead, I see "???". When I see the 
>source code for the email, I see that information
>MIME-version: 1.0
>Content-type: text/plain
>Content-transfer-encoding: 7BIT
>Is there anything wrong I m doing. Can you please help me solve this issue.
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message