title: Debug iconv_strlen error - PHP 5.5
body: <p>I am trying to export a document to PDF using Laravel &amp; DomPDF. This works on my mac, but not on staging or live server. Error as follows:</p>
  
  <p>I have no idea what this means, and cannot find any solutions.</p>
  
  <p><code>iconv_strlen(): Wrong charset, conversion from</code>8bit//IGNORE' to <code>UCS-4LE' is not allowed</code></p>
  
  <pre><code>open: /srv/www/html/vendor/patchwork/utf8/class/Patchwork/PHP/Shim/Mbstring.php
  
          return true;
      }
  
      static function mb_strlen($s, $encoding = INF)
      {
          INF === $encoding &amp;&amp; $encoding = self::$internal_encoding;
          return iconv_strlen($s, $encoding . '//IGNORE');
      }
  </code></pre>
  
  <p>I have tried adding the following to .htaccess</p>
  
  <pre><code>AddDefaultCharset UTF-8
  </code></pre>
  
  <p>I have tried adding the following to the top of the view which I am trying to generate the pdf for:</p>
  
  <pre><code>&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"/&gt;
  </code></pre>
  
  <p>If you need any further information to assist me in debugging, please ask in comments.</p>