title: CURL, wget and file_get_contents
body: <p>I have encountered a problem using the PHP command <code>file_get_contents()</code> and both <code>wget</code> and <code>curl</code> with Terminal on MacOS.</p>
  
  <p>The problem is that with some websites I only get a <code>HTML</code> file or a text of weird symbols. I am guessing it has to do something with encoding but I haven't found anything.</p>
  
  <p>Why is this occurring and how can I fix it?</p>