title: Html2pdf hindi support
body: <p>I am using html2pdf in my Yii application to generate Pdf's, This is my code</p>
  
  <p>Some 'Hindi' or 'Tamil' words are need to show in the pdf.</p>
  
  <p>How can I get this?</p>
  
  <p>sample code and generated Pdf are below, it shows either '?' or squares</p>
  
  <pre><code>    $html2pdf = Yii::app()-&gt;ePdf-&gt;HTML2PDF();
      $html2pdf = new HTML2PDF('L', 'A4', 'en');
      $html2pdf-&gt;setDefaultFont('freesans');
      $html2pdf-&gt;WriteHTML($this-&gt;renderPartial('attentancepdf', array(), true));
      $html2pdf-&gt;Output($batch_name);
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/t6KDM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t6KDM.jpg" alt="**output**"></a></p>