Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

French Accents in document.write()

Status
Not open for further replies.

wood

MIS
Aug 3, 2000
139
CA
I would like to know how to include French accents in a statement like:

document.write('<a style="text-decoration: none;" href="javascript:window.external.AddFavorite(url, title);"><center><font color="#6a6a6a" size="2" face="Verdana, Arial, Helvetica, sans-serif"><i><b>Cliquetez ici pour bookmark cette page pour l'acc&egrave;s instantan&eacute; &agrave; ces derniers des fonctions tra&ccedil;antes</b></i></font></center></a> ');

Any help would be appreciated.
 
wood,

Your code is good - you already have the accents in.

I suspect what is stopping it from working is the unescaped apostrophe.

Place a \ before the ' in l'accès:

Code:
document.write('<a style="text-decoration: none;" href="javascript:window.external.AddFavorite(url, title);"><center><font color="#6a6a6a" size="2" face="Verdana, Arial, Helvetica, sans-serif"><i><b>Cliquetez ici pour bookmark cette page pour l\'acc&egrave;s instantan&eacute; &agrave; ces derniers des fonctions tra&ccedil;antes</b></i></font></center></a> ');

And it works well.

Hope this helps,
Dan
 
Thank you very much for your quick reply and great eyes!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top