Link to home
Start Free TrialLog in
Avatar of Brad Bansner
Brad Bansner

asked on

displaying non-ascii characters in a Javscript alert

This code:

alert ("Eine oder mehrere Ihrer Eingaben ist eine ungültige Zahl.");

ü is HTML for ü character (German). But when I put it in a Javascript alert, the browser actually displays ü instead of the character. If I put in ü then the browser displays garbage characters. How is the correct way to display a ü in an alert, if possible? Thank you!
Avatar of leakim971
Flag of Guadeloupe image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The functions in the following page may help if needed (for example if you received HTML entities from a third party) :
Avatar of Brad Bansner
Brad Bansner


I added your doctype and charset reference, now it works! Thanks.