PDA

View Full Version : french characters



ahs10
03-02-2008, 09:20 PM
i have a js function that builds up to opening a new mailto window. it works when the message i want to send to the mailto link is in english, but i also need to create a french version of the message. that's where it messes up, opening a new mail window with no message inside.

what do i have to do to get the french text to work properly? do i need to change the encoding of my page?

any help or advice is much appreciated. thanks!

ahs10
03-02-2008, 11:16 PM
i am having such trouble with this, i don't know why.

my document is encoded at iso-8859-1, and the below code does not work properly.

var body_message="é"
var mailto='mailto:'+email+'?subject='+subject+'&body='+body_message;
win = window.open(mailto,'emailWindow');

when it opens in a new mail window it display é not the accented e i want to be displayed.

however, down in the body of my page if i put é it displays the accented e.

what the hell am i doing wrong?