title: file_get_contents not working with utf8
body: <p>I'm trying to get Thai characters from a website. I've tried:</p>
  
  <pre><code>$rawChapter = file_get_contents("URL");
  $rawChapter = mb_convert_encoding($rawChapter, 'UTF-8', mb_detect_encoding($rawChapter, 'UTF-8, ISO-8859-1', true));
  </code></pre>
  
  <p>When I do this then the characters come back like:</p>
  
  <p>¡ÅÑºË¹éÒáÃ¡¾ÃÐ¤ÑÁÀÕÃìÀÒÉÒä·Â©ºÑº</p>
  
  <p>But if I take the source of the page I'm trying to load and save that into my own .htm file on my localhost as a utf8 file then it loads the Thai characters correctly. Only when I try to load it from the site directly it breaks.</p>
  
  <p>How can I fix this? What could be the problem?</p>
  
  <p>I've also tried adding this context:</p>
  
  <pre><code>$context = stream_context_create(array(
              'http' =&gt; array(
                  'method' =&gt; 'POST',
                  'header' =&gt; implode("\r\n", array(
                      'Content-type: application/x-www-form-urlencoded',
                      'Accept-Language: en-us,en;q=0.5',
                      'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7'
                  ))
              )
          ));
  </code></pre>
  
  <p>I've tried adding it alone, I've tried adding it with the mb_convert_encoding()... I feel like I've tried all combinations of this stuff and no success.</p>