title: How to set charset UTF-8 in PHP Invoicr script
body: <p>I'm using <a href="https://github.com/farjadtahir/pdf-invoicr" rel="nofollow noreferrer">https://github.com/farjadtahir/pdf-invoicr</a>. </p>
  
  <p>Problem is when I add diacritics to <code>$invoice-&gt;setFrom()</code> (or anywhere else) diacritics not showing up.</p>
  
  <p>I tried <code>$invoice-&gt;setFrom(array(iconv("UTF-8", "ISO-8859-1","ÆØÅ")</code>from <a href="https://codecanyon.net/item/invoicr-php-class-for-beautiful-invoices/8829220/comments" rel="nofollow noreferrer">this comments</a>
  but still diacritics not working.</p>
  
  <p>Next I tried <a href="https://stackoverflow.com/a/21555497/2893691">https://stackoverflow.com/a/21555497/2893691</a> again not working.</p>
  
  <p>So, how to finally convert <code>ľščťžýáíé</code> to UTF-8 in invoicr?</p>
  
  <p><strong>EDIT - NEW INFO</strong></p>
  
  <p>I'm used <code>mb_detect_encoding()</code> and return is <code>UTF-8</code> already. But when I try show for example string <code>ičo123</code> the result is empty. Not showing.</p>
  
  <p>I tried add <code>header('Content-Type: text/html; charset=utf-8');</code> and still diacritics not working.</p>
  
  <p><strong>EDIT 2 - NEW INFO</strong></p>
  
  <p>I tried this script <a href="http://www.fpdf.org/en/script/script92.php" rel="nofollow noreferrer">http://www.fpdf.org/en/script/script92.php</a> and still not working. Here is screenshot of downloaded example from link above:</p>
  
  <p><a href="https://i.stack.imgur.com/QgrZI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QgrZI.png" alt="enter image description here"></a></p>