473,396 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

accents in e-mail

jim
Hi,

I can't gte accents in the subject and body fields of an e-mail !
This is my code :

document.location.href = 'mailto:we*******@mysite.com?subject=the subject is
éléphant&body=elephant is said éléphant in french !' ;

When the e-mail appears, I get weird characters instead of the wanted clean
accents.
Can you help me please ?

Thanks in advance,

--
jim
Jan 7 '07 #1
3 2455
jim
Hi,
>
I can't gte accents in the subject and body fields of an e-mail !
This is my code :

document.location.href = 'mailto:we*******@mysite.com?subject=the subject
is éléphant&body=elephant is said éléphant in french !' ;

When the e-mail appears, I get weird characters instead of the wanted
clean accents.
Can you help me please ?

Thanks in advance,

--
jim
well... it works in IE, but not on firefox 1.5 neither opera 9.10

--
jim
Jan 7 '07 #2
VK

jim wrote:
Hi,

I can't gte accents in the subject and body fields of an e-mail !
Because you have to escape the string values: either by yourself using
escape() method or let do it to a form.
This is my code :
document.location.href = 'mailto:we*******@mysite.com
Uhm... "Navigate browser to e-mail message"... Conceptual... but rather
crazy, is not it? ;-)

<html>
<head>
<title>1</title>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
</head>

<body onload="
var frm = document.forms['email'];
frm.action = 'mailto:sc**********@yahoo.com';
frm.submit();

document.links[0].click();
">

<form name="email" action=""
><input type="hidden" name="subject" value="Always escape mailto data!"
<input type="hidden" name="body" value="й"
</form>
<p
><a
href="mailto:sc**********@yahoo.com?subject=Always %20escape&body=%E9"
>mailto</a></p>
</body>
</html>

Jan 7 '07 #3
jim
"VK" <sc**********@yahoo.coma écrit dans le message de news:
11**********************@42g2000cwt.googlegroups.c om...

jim wrote:
Hi,

I can't gte accents in the subject and body fields of an e-mail !
Because you have to escape the string values: either by yourself using
escape() method or let do it to a form.
This is my code :
document.location.href = 'mailto:we*******@mysite.com
Uhm... "Navigate browser to e-mail message"... Conceptual... but rather
crazy, is not it? ;-)

<html>
<head>
<title>1</title>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
</head>

<body onload="
var frm = document.forms['email'];
frm.action = 'mailto:sc**********@yahoo.com';
frm.submit();

document.links[0].click();
">

<form name="email" action=""
><input type="hidden" name="subject" value="Always escape mailto data!"
<input type="hidden" name="body" value="?"
</form>
<p
><a
href="mailto:sc**********@yahoo.com?subject=Always %20escape&body=%E9"
>mailto</a></p>
</body>
</html>
thank you for your solution.
the escape function is what I needed.
It works in IE and FF ...but not Opera !
Jan 12 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: c w | last post by:
Can anyone point me in the right direction? Using Oracle 9i, Pro*C and Excel. I am trying to print french accents from the Oracle DB using Pro*C to extract the necessary info and sent the result...
0
by: Wim Roffal | last post by:
When I sort texts with accents the accents end up in the end instead of near the same text without accent. For example, the 3 composers Händel, Haydn and Holst will appear in the order Haydn,...
2
by: Ghislain Benrais | last post by:
Hi everybody, I have xml documents with external entities for my accents that I want to output properly with php function domxml_open_file. I can't get my accents on a linux-apache server (I get...
0
by: Chris Leffer | last post by:
Hi. I am having problems to use HtmlEncode with strings that use accents. My page uses some expressions like that: <%# Server.HtmlEncode(DataBinder.Eval(Container.DataItem, "Name").Trim) %> ...
1
by: bssjohn | last post by:
Dear All, I have developing a French website using PHP & Ajax. In that I tried to display some French texts from mysql database using Ajax. Form local I got the text from db with Correct accents...
0
by: Johnny Jörgensen | last post by:
Has anyone got a good idea as to how I can systematically remove accents from characters in a string? I.e. I want to do a function that can change "Ségolène Royal" (just to take a current...
5
by: Amy L. | last post by:
I am at an absolute loss on what is going on here. I have a text file with some Spanish writing. Some of the characters have accents. I have not found anyway to read this text file and echo the...
1
by: theduffman | last post by:
Hi, I'm trying to write code to update nightly some NHL stats. Everything works, except for names with an accent, e.g. José Théodore. This won't generate a match no matter what I try. I've edited...
2
by: LittleLeopard | last post by:
Hi, I hope somebody can help me. I’m working on this website English/Portuguese and for example on this page http://www.goulartfilmes.com/en//IvyGoulart/tabid/54/Default.aspx we can see the...
5
by: arty | last post by:
i have set up a xhr , all the accents on the page are showed ok on ff an safari function _cms() { cms.open("GET", 'cms.php', true); cms.setRequestHeader('If-Modified-Since','Wed, 05 Apr 2006...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.