[Javascript] Special Characters (Umlauts) in JavaScript

thomas.churm at pixelpark.com thomas.churm at pixelpark.com
Thu Mar 29 23:34:23 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?

in the web page with my special characters i've set the Charset 
correctly for the special characters i need, i think:
<META http-equiv="Content-Type" content="text/html; 
charset=iso-8859-1">

but i don't know if this has any affect on special characters that are 
written in pure JavaScript (ie., in an alert() ).

thanks,

tom






More information about the Javascript mailing list