title: Javascript Charset problem
body: <p>I want to read a file from my server with javascript and display it's content in a html page. 
  The file is in ANSI charset, and it has romanian characters.. I want to display those characters in the way they are :D not in different black symbols.. </p>
  
  <p>So I think my problem is the charset.. I have a get request that takes the content of the file, like this: </p>
  
  <pre><code>function IO(U, V) {//LA MOD String Version. A tiny ajax library.  by, DanDavis
  var X = !window.XMLHttpRequest ? new ActiveXObject('Microsoft.XMLHTTP') : new XMLHttpRequest();
  X.open(V ? 'PUT' : 'GET', U, false );
  X.setRequestHeader('Content-Type', 'Charset=UTF-8');
  X.send(V ? V : '');return X.responseText;}
  </code></pre>
  
  <p>As far as I know the romanian characters are included in UTF-8 charset so I set the charset of the request header to utf-8.. the file is in utf-8 format and I have the meta tag that tells the browser that the page has utf-8 content..</p>
  
  <pre><code>&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
  </code></pre>
  
  <p>So if I query the server the direct file, the browser shows me the romanian characters but if I display the content of the page through this script, I see only symbols instead of characters..
  So what I am doing wrong? </p>
  
  <p>Thank you! </p>
  
  <p>PS: I want this to work on Firefox at least not necessarily in all browsers..</p>