encoding - German letters (accented characters) read wrongly in JavaScript and shows wrong on the page -
i have simple german localization global object in page:
germanlocalization = { required: "alle pflichtfelder müssen belegt werden.", addattacbeforesave: "datei kann nicht hochgeladen werden, bevor der datensatz erstellt ist.", filetobig: "die dateigröße überschreitet die maximale uploadgröße." }
when read variable in code special german letter read wrong, question mark (image below).
my index.html page has utf-8 encoding:
<meta http-equiv="content-type" content="text/html; charset=utf-8">
my page acctualy frame other page succesfully shows german letter. not know problem page, or javascript since debuger shows how variable read chars wrongly.
your file not saved utf-8. make sure editor configured save utf-8.
Comments
Post a Comment