I am encountering an issue with displaying accented characters in my application; instead of showing ó, it is displaying ⛽. The string originates from a JSON file fetched from a server. Below are the technical specifics:
JSON: (This is the data retrieved from the server)
Note the 3rd key "Relación" where the letter "o" has an accent.
[
{
"key": "Canales"
},
{
"key": "Productos"
},
{
"key": "Relación con el ejecutivo"
}
]
Ajax (Below is the code used to fetch the data)
I have already included charset=utf-8 as recommended by most responses
$.ajax({
url: url,
type: "GET",
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function(data){
alert("client test: " + JSON.stringify(data));
}
}
Alert: (The displayed symbol should be -> ó, but it currently shows a box symbol)