Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tahrum's avatar

[solved] Issue with Unicode Filenames in Queue

I run a Taskplanner on our local Windows Server using PHP 7.1.7 ans laravel 5.4. Done tasks are exportet by dompdf and saved on our fileshare.

$pdffile = ''.$task->tasknumber.'-'.$task->customer_shortname.'-'.$task->text.'-'.$task->user_name.' '.\Carbon\Carbon::parse($task->date)->format('d.m.Y').'.pdf';
$pdf = PDF::loadView('pdf.document', compact('task'))->save('\\\\192.168.111.8\archiv_mosaik\test\auftragszettel\\'.$pdffile);

The text can contain some unicode characters. If I run the code above in my job WITHOUT implements ShouldQueueor direct from the controller, the filename ist stored correct. (...Auflösungen...) for example. But if the job is queued, the filename looks like ..Auflösungen..

Any idea how to fix this?

0 likes
0 replies

Please or to participate in this conversation.