title: How to set the Content-Type header using JavaScript
body: <p>How can you set the Content-Type header to "application/x-www-form-urlencoded; charset=UTF-8" using JavaScript?</p>
  
  <p>I need to do this so I can view a form with french characters without generating errors.</p>
  
  <p>Thanks</p>