Rick:
The Japanese characters are in the body of the mail, not in the email
address.
Regardless, I put the URLEncoder.encode (mailbody, "UTF-8") around the
japanese characters. That converted the input from :
éåããã
To
%E9%9B%BB%E5%AD%90%E3%83%A1%E3%83%BC%E3%83%AB
That results in an email tag of:
MAILTO:?body=%E9%9B%BB%E5%AD%90%E3%83%A1%E3%83%BC%E3%83%AB
Now the contents of the email look as follows:
ÃâÂÃÂÃÆÂÃÆâÃÆÂ
I have a very simple html file that illustrates this problem if there are
any more ideas on how to get around this.
Cheers,
Sue
On 3/11/04 12:31 PM, "rickevans" <[EMAIL PROTECTED]> wrote:
> I should have read your email a bit closer as JavaScript is not going to
> help you on the server side. The Java API that you need to use is:
>
> http://java.pc.sas.com/reference/jdk/jdk1.4/docs/api/java/net/URLEncoder.html
>
> The HTML mailto tag is limited as to what you can support, but it has to
> work with double byte characters and this is the API to fix your problem.
>
> This site describes what Microsoft supports in the mailto tag:
>
> http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80
> /support/kb/articles/Q279/4/60.asp&NoWebContent=1
>
>> On Thu, 11 Mar 2004 10:16:00 -0500 "Richard O. Hammer"
> <[EMAIL PROTECTED]> wrote.
>> Well now I've just about changed my mind about what I wrote earlier.
>> Now I suppose Japanese characters are allowed in email address.
>> Looking through the JavaDocs for java.net.URI
>> <http://java.sun.com/j2se/1.4.2/docs/api/java/net/URI.html>, I guess
>> maybe you could proceed by constructing Strings from byte arrays
>> containing your characters (in whatever character set you are using)
>> and passing those strings into a constructor for a URI.
>>
>> Better, maybe, I note that javax.mail.internet.InternetAddress has a
>> constructor which allows you to specify a charset.
>> <http://java.sun.com/products/javamail/javadocs/javax/mail/internet/InternetA
>> ddress.html>
>>
>> Best, if you are really lucky, someone who knows what they are talking
>> about (in addition to Rick Evans) may write a reply.
>>
>>
>>
>>
>> _______________________________________________
>> Juglist mailing list
>> [EMAIL PROTECTED]
>> http://trijug.org/mailman/listinfo/juglist_trijug.org
>
>
> _______________________________________________
> Juglist mailing list
> [EMAIL PROTECTED]
> http://trijug.org/mailman/listinfo/juglist_trijug.org
_______________________________________________
Juglist mailing list
[EMAIL PROTECTED]
http://trijug.org/mailman/listinfo/juglist_trijug.org