Moin!
Alles klar, charCodeAt() liefert den Latin-1-Zeichensatzwert!
_falsch_, es liefert den Unicode-Wert.
Genaugenommen haengt es von der JS-Version ab. Bis JS 1.2 (incl.) wurde mit ISO-8859-1 gearbeitet (a.k.a. Latin-1), seit Version 1.3 mit Unicode. In der ECMA-262-Spezifikation wird ebenfalls ausschliesslich mit Unicode gearbeitet.
Dasselbe gilt uebrigens fuer String.fromCharCode().
So long
--
Your password must be at least 18770 characters and cannot repeat any of your previous 30689 passwords.
-- http://support.microsoft.com/default.aspx?scid=kb;en-us;Q276304
Your password must be at least 18770 characters and cannot repeat any of your previous 30689 passwords.
-- http://support.microsoft.com/default.aspx?scid=kb;en-us;Q276304