title: Special characters (ë) in JSON-response
body: <p>My database stores some texts which I have to get with AJAX. This is going well but only when it not contains special characters such as ë or ä. I found some articles about this topic which told me to change the charset of the AJAX-request, but none of these worked for me.</p>
  
  <p>When I start firebug it said this about the headers:</p>
  
  <p><strong>Antwoordheaders (dutch for responseheaders)</strong><br>
  Cache-Control   no-store, no-cache, must-revalidate, post-check=0, pre-check=0<br>
  Connection  close<br>
  Content-Length  94<br>
  Content-Type    text/html; charset=ISO-8859-15<br>
  Date    Wed, 26 Sep 2012 09:52:56 GMT<br>
  Expires Thu, 19 Nov 1981 08:52:00 GMT<br>
  Pragma  no-cache<br>
  Server  Apache<br>
  X-Powered-By    PleskLin  </p>
  
  <p><strong>Verzoekheaders (dutch for requestheaders)</strong><br>
  Accept  text/html,application/xhtml+xml,application/xml;q=0.9,<em>/</em>;q=0.8<br>
  Accept-Encoding gzip, deflate<br>
  Accept-Language nl,en-us;q=0.7,en;q=0.3<br>
  Authorization   Basic c3BvdGlkczp6SkBVajRrcw==<br>
  Connection  keep-alive<br>
  Content-Type    text/html; charset=ISO-8859-15<br>
  Cookie  __utma=196329838.697518114.1346065716.1346065716.1346065716.1;   __utmz=196329838.1346065716.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);   PHPSESSID=2h4vu8gu9v8fe5l1t3ad5agp86<br>
  DNT 1<br>
  Host    www.spotids.com<br>
  Referer <a href="http://www.spotids.com/private/?p=16" rel="nofollow">http://www.spotids.com/private/?p=16</a><br>
  User-Agent  Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1  </p>
  
  <p>Both of the headers are talking about charset=ISO-8859-15 which should include characters like ë, but it doesn't work for me.</p>
  
  <p>The code I used for this (PHP):    </p>
  
  <pre>`$newresult = mysql_query($query2);    
      $result = array();
      while( $row = mysql_fetch_array($newresult))
      {
          array_push($result, $row);
      }
      $jsonText = json_encode($result);
      echo $jsonText;`</pre>