title: Error in mpdf genertion using codeigniter i got fatal error in server
body: <p>Call to undefined function <code>mb_internal_encoding()</code> in <code>/home/project//public_html/application/third_party/mpdf/mpdf.php on line 1519</code></p>
  
  <p><code>Error</code>:</p>
  
  <pre><code>A PHP Error was encountered
  
  Severity: Error
  
  Message: Call to undefined function mb_internal_encoding()
  
  Filename: mpdf/mpdf.php
  
  Line Number: 1519
  
  Backtrace:
  But it is correctly working in localhost
  </code></pre>
  
  <p>my contoller</p>
  
  <pre><code> public function viewpdf($key,$option) {
  
       if($option=='1')
      {
          $searchdata['fetchproduct']=$this-&gt;b2bproduct_model-&gt;fetch_productdata1($key);
  
      }
      if($option=='2')
      {
          $searchdata['fetchproduct']=$this-&gt;b2bproduct_model-&gt;fetch_productdata2($key); 
      }
      if($option=='3')
      {
         $searchdata['fetchproduct']=$this-&gt;b2bproduct_model-&gt;fetch_productdata3($key); 
  
      }
  
      $html=$this-&gt;load-&gt;view('moderator/pdf_data', $searchdata,true);
  
          //this the the PDF filename that user will get to download
          $pdfFilePath = "shany.pdf";
  
          //load mPDF library
          $this-&gt;load-&gt;library('m_pdf');
  
         //generate the PDF from the given html
          $this-&gt;m_pdf-&gt;pdf-&gt;WriteHTML($html);
  
          //download it.
          $this-&gt;m_pdf-&gt;pdf-&gt;Output($pdfFilePath, "I");   
        }
  </code></pre>