esn003 — 2011-11-03T12:01:46-04:00 — #1
I am new in this "Web/HTML" and I was wondering if there is a way to force email client to go in UTF8 mode
through a 'mailto'.
Please advice here.
ralphm — 2011-11-03T19:36:56-04:00 — #2
Hi esn003. Welcome to SitePoint.
Could you say a bit more about what you mean? What is the process you envisage happening?
esn003 — 2011-11-04T04:29:58-04:00 — #3
Hi Ralph and thanks,
It is about encoding. Normaly, in my part of the world, email clients like Outlook,
have as default a specific encoding methode and I need to make it UTF8 in order
to see the fonts right.
Any idea? please help me if you can.
ralphm — 2011-11-04T04:38:40-04:00 — #4
Sure, but I still don't know what process you are describing. mailto: is just a way of configuring a link on a web page to open an email client and a new email addressed to the address following "mailto". None of that has any influence on the encoding the email client is using. That's not up to you at all. If you are sending an HTML email, you can of course encode it any way you like.
Are you asking how to force people who are sending emails to use utf-8? That has nothing to do with web design as such.
So I'm still not clear on what you are asking. Do you see why?
EDIT: O, I see you are talking about fonts. Are you asking about how to set up your own email client?
esn003 — 2011-11-04T04:50:58-04:00 — #5
Ralph I think that if we'll talk 'code'-ish it will be easier.
Here is my code:
send_it = "mailto:email@example.com?subject=~הצטרפות לרשימת תפוצה~&body=שמך המלא בבקשה:%20";
document.location = send_it;
esn003 — 2011-11-04T05:52:40-04:00 — #6
I just red your article "Tips on Character Encoding" on you Web Tips.
Now I know that you too have a long way behind you on UTF8 and
I might have some more questions to ask you, like how to force
the email client to go into 'rtl' in the same mailto.
It is very instructive reading your site.
xhtmlcoder — 2011-11-04T07:57:48-04:00 — #7
It sounded like you were actually wanting to set these values within HTML e-mail documents and in which case apart from the encoding your best bet is to probably use the correct attributes, e.g. <html dir="rtl">
I guess things like sending: Content-Type: text/plain;charset=UTF-8 would effect the encoding. Though I don't have any "real world" familiarity with such e-mail templates or actual mail client markup regarding standards support relational to this type of question.
However, I assume the main page containing the email link itself would already be in Hebrew in which case similar applies. See: http://www.w3.org/International/tutorials/bidi-xhtml/
esn003 — 2011-11-04T08:11:29-04:00 — #8
My point is that the 'mailto' above should be independent of one person's browser
or email client software and once and only once (for this email) set the proper
characteristics in order to see it right.
My browser is set OK and so is the code but, when others send it looks BAD!
xhtmlcoder — 2011-11-04T09:31:00-04:00 — #9
It might be a limitation of functionally in mailto: protocol in a page, since you cannot dictate what mail client the user has installed or how it is configured. That protocol doesn't really have strictly defined standards regarding the other values for headers either. All you really can do is make sure the page headers itself are all correct and the encodings.
The rest is out of your hands basically if it doesn't fall within US-ASCII and hence why server-side mail forms tend to be more popular - apart from the spambot issue.
esn003 — 2011-11-04T09:40:32-04:00 — #10
Thank you xhtmlcoder. I don't like it but I have to accept it.
In my code above you can see kind of control characters like "".
Do you know where can I find more data of this kind?
xhtmlcoder — 2011-11-04T12:27:56-04:00 — #11
esn003 — 2011-11-04T13:29:59-04:00 — #12
Thank you again xhtmlcoder. This brought me a little bit closer to what I need.