ahs10 Posted March 2, 2008 Share Posted March 2, 2008 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 email="[email protected]" vaq subject="Javascript Aggravates Me" 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? Link to comment https://forums.phpfreaks.com/topic/94086-javascript-and-html-entities/ Share on other sites More sharing options...
optikalefx Posted March 4, 2008 Share Posted March 4, 2008 well for one you spelled var wrong for two you dont have semi colons after each line and for three the accented e is not é better off convering an character number for that one Link to comment https://forums.phpfreaks.com/topic/94086-javascript-and-html-entities/#findComment-482902 Share on other sites More sharing options...
haku Posted March 4, 2008 Share Posted March 4, 2008 semi-colons are optional in javascript. I don't use them at all myself - its extra unnecessary code. The accented i: í or í Link to comment https://forums.phpfreaks.com/topic/94086-javascript-and-html-entities/#findComment-482922 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.