[Javascript] Special Characters in Alert Boxes

thomas.churm at pixelpark.com thomas.churm at pixelpark.com
Sun Apr 1 01:48:30 CST 2001


hi,

when i use the .html special code for umlauts in JavaScript they don't 
work.

for example: 
alert('\nKein gültiges Email-Adresse!');
returns literally "gültiges".

my question is, is it safe to go ahead and use the special characters 
itself, as in:
alert('\nKein gültiges Email-Adresse!');

will the umlaut "ü" be seen correctly by all browsers?  is text that 
is written with pure JavaScript then always simply an ASCII string and 
is it therefore safe to use these special characters?

thanks,
tom







More information about the Javascript mailing list