Поддержка utf-8 для barryvdh / laravel-dompdf на laravel 4

я использую пакет dompdf из Вот.
Я могу загрузить мой файл просмотра в PDF. но текст, который должен быть на китайском, не отображался. Я попытался добавить шрифт лица, но все еще не решает проблему.
Образец моего файла просмотра

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style>
@font-face {
font-family: firefly;
src: {{ storage_path().'/fonts/fireflysung.ttf' }};
}
</style>
</head>
<body>

<h3>Summary Invoice Report</h3>

Date from {{ $from }} to {{ $to }}
<p>Date: {{ date('Y-m-d') }}</p>
<table border="1">
<thead>
<tr>
<th>INVOICE</th>
<th>DATE</th>
<th>COMPANY NAME</th>
<th>TOTAL AMT</th>
<th>OUTSTANDING</th>
<th>CANCEL AMT</th>
</tr>
</thead>

<tbody>
@foreach ($data as $row)
<tr>
<td> {{ $row->invoice_number }} </td>
<td>{{ $row->created_at }} </td>
<td>{{ $row->customer_name }} </td>
<td>{{ $row->total_amount }} </td>
<td>{{ $row->total_outstanding_amount }} </td>
<td>{{ $row->cancel_amount }} </td>
</tr>
@endforeach
<tr>
<td colspan="3">Total</td>
<td>{{ $total_invoice }}</td>
<td>{{ $total_outstanding }}</td>
<td>{{ $total_cancel }}</td>
</tr>
</tbody>
</table>
</body>
</html>

0

Решение

Задача ещё не решена.

Другие решения

Других решений пока нет …