image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
LinkBack Thread Tools
  #1  
Old July 17th, 2005, 03:38 PM
andehlu's Avatar
this modern love
 
Join Date: Feb 2004
Location: torontoCANADA
Posts: 244
Thanks: 0
Thanked 0 Times in 0 Posts
andehlu is on a distinguished road
special characters in a javascript alert?

Does anyone know how to put special characters in a javascript alert?

Im trying to make a french js alert....
alert("Veuillez inscrire votre prénom..")

thanks for the help.....
__________________
site | blog | garageband experiments
Reply With Quote
  #2  
Old July 17th, 2005, 06:04 PM
Registered User
 
Join Date: Jul 2002
Posts: 382
Thanks: 0
Thanked 2 Times in 2 Posts
elander will become famous soon enough
Use unicode, and precede the code with \u, like this:

'Veuillez inscrire votre pr'+\u00E9+'nom'

Use this to find the right codes:
http://www.unicode.org/charts/
__________________
/elander
website: http://www.scribus.se/
Reply With Quote
  #3  
Old July 30th, 2009, 10:15 AM
Registered User
 
Join Date: Jul 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
subhash_reddy36 is on a distinguished road
If you want to dispaly special characters of german in javascript alert or innerHtml or InnerText then fomat as below

For Example:

you want to display
alert(''Bitte überprüfen Sie die Eingabe'');

instead of ü use \u00FC

alert('Bitte \u00FCberpr\u00FCfen Sie die Eingabe');

Use this to find the right codes for German Characters:
http://www.unicode.org/charts/PDF/U0080.pdf
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump


All times are GMT -5. The time now is 01:19 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.