title: Missing chars when posting data in ajax using javascript
body: <p>I have a textarea:</p>
  
  <pre><code>&lt;textarea id="my_text"&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>And have some ajax code in javascript like this:</p>
  
  <pre><code>var xmlhttp = new XMLHttpRequest();
  var my_text = document.getElementById("my_text").value;
  xmlhttp.open("POST", ".", true);
  xmlhttp.send("my_text=" + my_text + "&amp;foo=1");
  </code></pre>
  
  <p>When I filled the textarea with string <code>abc +1 +2 +3</code>, and run the JS code. The value of "my_text" I get in the server side is <code>abc  1  2  3</code>. </p>
  
  <p>How can I change the JS code to get the right string <code>abc +1 +2 +3</code> in server side. </p>