title: character encoding of the HTML document was not declared codeigniter
body: <p>My CodeIgniter app has started to a freak error:</p>
  
  <pre><code>The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol.
  </code></pre>
  
  <p>In the first visit, the page appears fine, just a message <strong>"guimbu"</strong>. If you refresh the page, the error appears until you clear the history of browser.
  This happens only after second page-view. Take a look: <a href="http://guimbu.com/soon" rel="nofollow">http://guimbu.com/soon</a></p>
  
  <ul>
  <li>I've just opened ALL FILES with Sublime and saved to UTF-8; twice.</li>
  <li>I've just tried with all charset meta tags;</li>
  <li>This happens with ALL pages, including this simple page;</li>
  </ul>
  
  <p>My autoload.php has this:</p>
  
  <pre><code>$autoload['packages'] = array();
  $autoload['libraries'] = array('session', 'database', 'firephp', 'auth');
  $autoload['helper'] = array('url', 'log_helper', 'api_helper', 'string_helper');
  $autoload['config'] = array('ci_opauth', 'rest', 'ci_auth');
  $autoload['language'] = array();
  $autoload['model'] = array();
  </code></pre>
  
  <p>How can I debug this problem?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>@sudhir, thanks for the answer, but I tried this many times. Actually the source code is just: </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;head&gt;
      &lt;title&gt;guimbu&lt;/title&gt;
      &lt;meta content="text/html;charset=utf-8" http-equiv="Content-Type"&gt;
      &lt;meta content="utf-8" http-equiv="encoding"&gt;
  &lt;/head&gt;
  &lt;body&gt;
      guimbu =)
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And the error persists after second page-view =/
  Maybe a problem with sessions?</p>
  
  <p><strong>UPDATE with possibility:</strong></p>
  
  <p>When I remove <strong>session</strong> and <strong>auth</strong> libraries from <strong>autoload</strong>, the problem doesn't happen. WTF? <strong>auth</strong> is a library I made for user authentication.</p>