My code to create my table head is the following:
CreateHeadTable(idDes, idT, ["#", "Empresa", "Dirección", "Consultar"]);
function CreateHeadTable(idDest, idT, arrayHead){
var mytable = document.createElement("TABLE");
mytable.setAttribute("id", idT);
mytable.className = "display";
mytable.cellPadding = 0;
mytable.width = "100%";
var thead = document.createElement("THEAD");
mytable.appendChild(thead);
var tr = document.createElement("tr");
thead.appendChild(tr);
var th, cell;
for(var row = 0; row < arrayHead.length; row++) {
th = document.createElement("th");
cell = document.createTextNode(arrayHead[row].toString());
th.appendChild(cell);
tr.appendChild(th);
}
document.getElementById(idDest).appendChild(mytable);
iniciarTabla(idT);
}
That word should be: "Dirección" and not "Direcci?n"
I'm using visual studio 2010 and MVC asp.net with razor cshtml and I put this in my layout main
<head> <meta content="text/html; charset=ISO-8859-1" /> </head>
there any way to fix that ??