How to Use UTF-8 | Add arabic language

Author: galtechstaffsCreated Nov 9, 2022Updated Jun 25, 2026
Labelsstale

I get the PDF, but the Arabic character are like "??????" question mark icon composer.js "barryvdh/laravel-dompdf": "^2.0",

app.js 'providers' => [ Barryvdh\DomPDF\ServiceProvider::class, ], 'aliases' => [ 'PDF' => Barryvdh\DomPDF\Facade::class, ]

controller $pdf = PDF::loadView('admin.invoice.invoicepdf', ['invoices' => $invoices,]); return $pdf->stream();