title: Does ajax post data need to be URI encoded?
body: <p>Regarding this line:</p>
  
  <pre><code>var data = encodeURIComponent(JSON.stringify(object_literal));
  </code></pre>
  
  <p>I don't understand why this is being URI encoded.  </p>
  
  <p>Later data will be sent via <code>ajax POST</code>.  </p>
  
  <p>I understand that URLs, particularly the one you can see in the browser address bar require special characters as described here:</p>
  
  <p><a href="http://www.blooberry.com/indexdot/html/topics/urlencoding.htm">http://www.blooberry.com/indexdot/html/topics/urlencoding.htm</a></p>
  
  <p>But what exactly does this have to do with Ajax posting?</p>
  
  <p>Do both the url address bar and the internal ajax post utilize the same mechanism?</p>