I\'ve to read JSON file encoded with utf-8 charset
I use this syntax:
$http.get(\'resources/negozi.json\',
{header : {\'Content-Type\' : \'applicatio
If you are using php as server-side programming language you can try to set the internal encoding to utf-8 with mb_internal_encoding("utf-8")
.
It looks like you might need to set an Accept
header. The contentType
header applies to the stuff you're sending;
Accept: application/json;charset=UTF-8
Accept-Charset: UTF-8
so;
$.ajax({
type:"GET",
url:"resources/negozi.json",
headers: {
"Accept": "application/json;charset=utf-8",
"Accept-Charset":"charset=utf-8"
},
dataType:"json"
});