urgent help with mailto

Hi everyone,

I use mailto:?body =' '&subject = ' ' from a JSP in order to open an outlook express window and send an email. My question is when i enter greek characters in the subject property they show all messed up in the outlook window. I have specified the encoded type in the JSP as UTF-8 with:

<%@ page contentType="text/html;charset=utf-8"%>

and i have set it in the outlook as well but the problem persists. Any ideas would be most welcome. Also note that i use mailto in a javascript. Thank you in advance.

[554 byte] By [raf26a] at [2007-10-3 3:23:05]
# 1
don't cross-post%
duffymoa at 2007-7-14 21:15:34 > top of Java-index,Java Essentials,Java Programming...
# 2
[url= http://www.catb.org/~esr/faqs/smart-questions.html#urgent]How To Ask Questions The Smart Way: Don't flag your question as 揢rgent? even if it is for you[/url]How are you returning the letters? %numbers or directly?Are you sure the client can support them?
mlka at 2007-7-14 21:15:34 > top of Java-index,Java Essentials,Java Programming...
# 3
> don't cross-postWhat if he/she were to [url= http://en.wikipedia.org/wiki/Boston_Post_Road]cross the post[/url]?
filestreama at 2007-7-14 21:15:34 > top of Java-index,Java Essentials,Java Programming...
# 4

Ok, i'm sorry i cross-posted, seems i tried to play smart in a cheap way and sorry about the 'urgent' as well but please, i really need the help

To mlk:

i'm returning the letters directly and i think the client can suport them. It seems the outlook don't recognise the greek characters. Any suggestions? It's driving me mad.

raf26a at 2007-7-14 21:15:34 > top of Java-index,Java Essentials,Java Programming...
# 5
> i'm returning the letters directly and i think the> client can suport them. It seems the outlook don't> recognise the greek characters. Any suggestions? It's> driving me mad.Try URL-encoding them.
mlka at 2007-7-14 21:15:34 > top of Java-index,Java Essentials,Java Programming...
# 6

Here's what looks to me like a very good article on mailto URLs:

http://email.about.com/od/mailtoemaillinks/a/mailto_elements.htm

(The first link that Google returned when I used "mailto url" as my search terms.)

You'll notice the link to RFC2822; if you follow that and read it, you'll see that it says that header names and bodies must be composed of US-ASCII characters. And "Subject" is a header. But go ahead and try things anyway, they might work.

DrClapa at 2007-7-14 21:15:34 > top of Java-index,Java Essentials,Java Programming...
# 7

> and read it, you'll see that it says that header

> names and bodies must be composed of US-ASCII

/thinks back.

That sounds right.

I've just stuck Εγρο (sp?) in the subject field of my email client, but it will not show up in the subject field.

mlka at 2007-7-14 21:15:34 > top of Java-index,Java Essentials,Java Programming...
# 8

Thanks to all for your replies,

>/thinks back.

>That sounds right.

>I've just stuck Εγρο (sp?) in the subject field of my email client, but it will not >show up in the subject field.

There has got to be a way around that. Right now, i've set the Outlook Express encoding to both utf-8 and greek but nothing. Also from the windows Regional and Language settings i've made sure that Greek are supported. There must be a setting in windows or outlook that i have overlooked. Maybe the mailto has a different syntax for non-ASCII characters? Any help is appreciated.

raf26a at 2007-7-14 21:15:34 > top of Java-index,Java Essentials,Java Programming...
# 9
> There has got to be a way around that. Nope, it is a problem with the email specs, not with the mailto: url, have you ever received an email with Greek in the subject?BTW, did I spell kebab correctly?
mlka at 2007-7-14 21:15:34 > top of Java-index,Java Essentials,Java Programming...
# 10
> BTW, did I spell kebab correctly?You plan on take away tonite after a few pints?
filestreama at 2007-7-14 21:15:34 > top of Java-index,Java Essentials,Java Programming...
# 11

> > BTW, did I spell kebab correctly?

>

> You plan on take away tonite after a few pints?

The kebabs in the UK are not as nice, different meat or something.

Two weeks then all the Eypo I can much on. :yum:

Eva eypo uovo krauudi :yum:

Mm, wait that is Euro, maybe I want to use an χ?

Message was edited by:

mlk

mlka at 2007-7-14 21:15:34 > top of Java-index,Java Essentials,Java Programming...
# 12

> Nope, it is a problem with the email specs, not with

> the mailto: url, have you ever received an email with

> Greek in the subject?

There's an RFC (I think it's RFC2047, yes, Google says it is) which is about using non-ASCII headers in Internet mail. And pretty much all e-mail clients (maybe not web ones) nowadays implement that RFC, so it's possible to have subject lines in all scripts. But the mailto URL predates that RFC.

DrClapa at 2007-7-14 21:15:34 > top of Java-index,Java Essentials,Java Programming...
# 13

> here's an RFC (I think it's RFC2047, yes, Google says it is

Thanks for that.

> it's possible to have subject lines in all scripts.

> But the mailto URL predates that RFC.

I'm suprised this does not work then. [url=mailto:test@test.invalid/?subject=%CE%95%CE%B3%CF%81%CE%BF]mailto:test@test.invalid/?subject=%CE%95%CE%B3%CF%81%CE%BF[/url], when this [url=http://en.wikipedia.org/wiki/%CE%95%CE%B3%CF%81%CE%BF]http://en.wikipedia.org/wiki/%CE%95%CE%B3%CF%81%CE%BF[/url] does. I'd expect the mailto URL to piggy back on it.

(It is Εγρο. But lowercase gamma looks like uppercase upsilon, grr darn greeks)

mlka at 2007-7-14 21:15:34 > top of Java-index,Java Essentials,Java Programming...
# 14

To mlk:

It's spelled Γυρο in greek, which means greek kebab. To be more precise, kebab is turkish and generally more middle-eastern while Γυρο is a greek recipe. Think something like Takos or Buritos but with greek flavor.

To DrClap:

What you said is very interesting, do you know some other command other than mailto that does the same job but supports international characters?

Message was edited by:

raf26

raf26a at 2007-7-14 21:15:34 > top of Java-index,Java Essentials,Java Programming...
# 15

> It's spelled in greek, which

> means greek kebab. To be more precise, kebab is

> turkish and generally more middle-eastern while

> is a greek recipe. Think

> something like Takos or Buritos but with greek

> flavor.

Gyros. :) I once witnessed a woman going into a turkish kebab shop, asking whether they had gyros. I didn't expect her to get out alive again, but the turk took a deep breath and calmly explained to her that the basic idea is just the same.

CeciNEstPasUnProgrammeura at 2007-7-21 10:09:22 > top of Java-index,Java Essentials,Java Programming...
# 16

> To mlk:

Thanks.

> other command other than mailto that does the same

> job but supports international characters?

You might be able to do it via JavaScript, but it is unlikely. <googles/> Nope nothing shows up.

I guess the only option is Greeklish.

mlka at 2007-7-21 10:09:22 > top of Java-index,Java Essentials,Java Programming...
# 17

>Thanks

Yep, Γυρος or Gyros in greeklish can be a very tasty if unhealthy treat especially if the people that make it really know how to make it.

Still looking for help, anything you can suggest either you think is right or wrong

please do so, thanks.

raf26a at 2007-7-21 10:09:22 > top of Java-index,Java Essentials,Java Programming...
# 18
I finally made it to work with Internet Explorer so that inside the Outlook window the subject and body display in greek but i can't make it to work for mozzila firefox and it is important to run with both browsers. So can anyone help, please?
raf26a at 2007-7-21 10:09:22 > top of Java-index,Java Essentials,Java Programming...