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).

enter image description here

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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -