Hallo Thomas.
document.getElementById("CharB").firstChild.data = "@";
document.getElementById("CharB").firstChild.data = String.fromCharCode(64);
Und warum nicht einfach so:
document.getElementById("CharB").firstChild.data = '摤';
AFAIK ist JS die Kodierung der Datei egal. (Nur der JS-Code sollte möglichst UTF-8 sein, da obiges Zeichen sonst verloren geht.)
Einen schönen Dienstag noch.
Gruß, Ashura
--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
mathbr:del.icio.us/ mathbr:w00t/
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
mathbr:del.icio.us/ mathbr:w00t/