tcpdf-laravel icon indicating copy to clipboard operation
tcpdf-laravel copied to clipboard

thai filename not working

Open dsanthoshraj opened this issue 4 years ago • 0 comments

Filename comes with both English and thai dynamically. English filenameworking properly but thai filename not working properly and not download in the pdf format. Below mentioned the code for your reference. Filename contains fully engilsh or thai or combine of english&thai.

$filename = 'สร้างกลุ่มแชทใ'; $pdf = new TCPDF(); $pdf::SetTitle('Chat History'); $pdf::SetFont('freeserif', '', 12); $pdf::AddPage(); $pdf::writeHTML($html, true, false, true, false, ''); $pdf::Output($filename. '.pdf', 'D');

dsanthoshraj avatar Jan 29 '21 10:01 dsanthoshraj