My problem is that the words that are returned from my controller to view via JsonResult are losing their accent, instead of accent it's getting converted for a symbol.
This word "Finalizar_Saída" is been wrong rendered this way = "Finalizar_Sa�da".
My initial return call:
return Json(Object);
I Already tried things like this:
Add in HTML page:
< META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="@Url.Content("~/path/fileName.js")" type="text/javascript" charset="utf-8"></script>
Add in document javascript:
contentType: "application/json; charset=ISO-8859-1",
dataType: "json",
Add in web.config this text:
<globalization culture="pt-BR" uiCulture="pt-BR" requestEncoding="iso-8859-1" responseEncoding="iso-8859-1" fileEncoding="iso-8859-1" />
or
<globalization enableClientBasedCulture="false" requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8"
responseHeaderEncoding="utf-8" enableBestFitResponseEncoding="true" culture="es-MX" uiCulture="es-MX"/>
Add in C# :
I've changed the return call like this:
Json(Object, "application/json", Encoding.UTF8);
Do someone know a way to figure this out?