I have this on my JSON-file (mydata.json on the server):
"jp": [ "私はあなたを愛しています!",
and more. There is also "de" and "en" and so on and it is displayed correctly. But with these japanese characters, I get these unrecognizable characters. I have read threads here but I can't find a solution. I think it has something to do with the data from the server, wrong asking header, but don't know, how to fix it. I tried this (found here on stackoverflow) (file.js):
$.ajax({url: myURL, contentType: "application/json; charset=utf-8",
success: function(dataJSON){
console.log(dataJSON);
}
});
End the outputs of the "de" and "en" (and more) are great, but the japanese characters appear like this:
���͂��Ȃ��������Ă��܂��I
How can I fix it?