title: Error with Encoding when I create HTML table with Javascript
body: <p>My code to create my table head is the following:</p>
  
  <pre><code>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 &lt; 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);   
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/W958E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W958E.png" alt="enter image description here"></a>
  That word should be: "Dirección" and not "Direcci?n"</p>
  
  <p>I'm using visual studio 2010 and MVC asp.net with razor cshtml
  and I put this in my layout main</p>
  
  <pre><code>&lt;head&gt; &lt;meta content="text/html; charset=ISO-8859-1" /&gt; &lt;/head&gt;
  </code></pre>
  
  <p>there any way to fix that ??</p>