title: Force encoding in utf-8 for a php page
body: <p>I have a VPS (Debian, Apache, MySQL, PHP)</p>
  
  <p>I want to force the encoding in UTF-8. I have put this line :</p>
  
  <pre><code>header('Content-type: application/json; charset: UTF-8');
  </code></pre>
  
  <p>But the charset is still  ISO8859</p>
  
  <p>I also edited the php.ini : /etc/php5/apache2/php.ini</p>
  
  <pre><code>mbstring.language=UTF-8
  mbstring.internal_encoding= UTF-8
  mbstring.http_input=UTF-8
  mbstring.http_output=UTF-8
  mbstring.detect_order= auto
  </code></pre>
  
  <p>and the apache conf :</p>
  
  <pre><code>nano /etc/apache2/conf.d/charset
  AddDefaultCharset UTF-8
  </code></pre>
  
  <p>An iOS application is calling my php page. And I give it a JSON output. But it receives ISO charset...</p>