title: UTF-8 Problems while sending Jquery Ajax
body: <p>I wrote a js script to post form data to my php backend. But the Textfield would receive it with a false encoding.</p>
  
  <p>Here is my meta tag for this site:</p>
  
  <pre><code>&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;    
  </code></pre>
  
  <p>Heres my textarea:</p>
  
  <pre><code>&lt;textarea id="orderlistlieferanschrift" style="width:294px; height:80px; resize:none;"&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>Here is my php script:</p>
  
  <pre><code>header('Content-typ: content="text/html; charset=UTF-8');
  $postdata = $_POST["postData"];
  error_log($postdata);
  </code></pre>
  
  <p>The Data is collected as follows:</p>
  
  <pre><code>var Lieferanschrift           = $("#orderlistlieferanschrift").val();
  aOrderInformations[9]         = Lieferanschrift;
  </code></pre>
  
  <p>Here is my ajax request:</p>
  
  <pre><code>var postData = JSON.stringify(aOrderInformations);
  if(!ajaxload2) {
      //alert(postData);
      ajaxload2 = true;   
      $.ajax({
          type : 'POST',
          url : 'share/content/helper/writeorderdata.php',
          cache: false,
          dataType : 'json',
          data: {postData:postData},
          success: function() {
                          ajaxload2 = false;
                          alert("erledigt");
          }
      });
  } 
  </code></pre>
  
  <p>In the server log the data where displayed as follows:</p>
  
  <pre><code>"Zentrale Oberursel\\nGablonzer Stra\xc3\x9fe 35\\n61440 Oberursel"
  </code></pre>
  
  <p>When I use the option data-Typ in jquery ajax an play with them an them the data won´t send. </p>