I use PDF::loadHtml for creating pdf in Laravel 5.3
everything works good but i have utf8 problem i cant solv it
My codes :
$text="<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<h2 style="text-align:center">Birinci gün</h2>
<table style="width:100%;" border="1">
<tbody><tr>
<td></td>
<td>Həftə</td>
<td style="text-align:center">Dərs</td>
<td style="text-align:center">Vaxt</td>
<td style="text-align:center">Müəllim</td>
<td style="text-align:center">Korpus</td>
<td style="text-align:center">Otaq</td>
</tr>
<tr>
<th rowspan="2">1</th>
<td style="padding-left:5px">Üst</td>
<td><input name="ders[]" value=""></td>
<td style="text-align:center"><input name="vaxt[]" value=""></td>
<td style="text-align:center"><input name="teacher[]" value=""></td>
<td style="text-align:center"><input name="korpus[]" value=""></td>
<td style="text-align:center"><input name="otaq[]" value=""></td>
</tr> </tbody></table>
</body>
</html>";
$pdf = PDF::loadHTML('<?xml encoding="UTF-8">' .$text, 'UTF-8');
return $pdf->stream();