title: PHP FPDI Try to add text in Hebrew language to pdf file but i got problem in utf
body: <p>I use FPDI library for php and try to add text into pdf file.
  It's work but when i change the text to Hebrew i got</p>
  <pre><code>×•× ̈×– ×”×¦×œ×—×a×TM ×œ×”×•×¡×TM×£ × ̃×§×¡× ̃
  </code></pre>
  <p>This is my code:</p>
  <pre><code>&lt;?php
  use setasign\Fpdi\Fpdi;
  use \setasign\Fpdi\PdfParser\StreamReader;
  require_once('fpdf/fpdf.php');
  require_once('fpdi/src/autoload.php');
  
  $rawPostBody = file_get_contents('php://input');
  $signatures = (array)json_decode($rawPostBody);
  
  $fileURL = $signatures['filURL'];
  $signaturesData = $signatures['signatures'];
  
  // Initial Fpdi
  $pdf = new Fpdi();
  // Load external pdf file with StreamReader (We Use StreamReader Only for External file)
  $fileContent = file_get_contents($fileURL,'rb');
  $pdf-&gt;setSourceFile(StreamReader::createByString($fileContent));
  // Get number of pages.
  $pageCount = $pdf-&gt;setSourceFile(StreamReader::createByString($fileContent));
  // Illiterate and create pdf pages.
  for ($pageNumber = 1; $pageNumber &lt;= $pageCount; $pageNumber++) {
      $tplId = $pdf-&gt;importPage($pageNumber);
      $s = $pdf-&gt;getTemplatesize($tplId);
      $pdf-&gt;SetTextColor(0,0,0);
      $pdf-&gt;SetFont('Arial','B',10);
      $pdf-&gt;AddPage($s['h'] &gt; $s['w'] ? 'P' : 'L', array($s['w'], $s['h'])); // This gets it the right dimensions
      $pdf-&gt;useTemplate($tplId, null, null, null, null, true); 
      foreach ($signaturesData as $signa) {
          if($signa-&gt;page == $pageNumber) {
              $pdf-&gt;SetXY(number_format($signa-&gt;positionX), number_format($signa-&gt;positionY * 0.264583));
              $pdf-&gt;Write(0, &quot;שלום שלום&quot;);
          }
      }
  }
  $pdf-&gt;Output('pdf-with-value.pdf', 'D');   
  </code></pre>
  <p>I read some post with a similar problem but I couldn't figure out what exactly I needed to do.
  Thanks</p>