I’m using the following to generate my export pdf filename:
$doc->FileName = Language()->phrase('StudentsIncidents_9') . "_{$recordId}_{$formattedDateTime}_(" . Language()->phrase('StudentsIncidents_11') . " " . date("d_m_Y @H_i") . ").pdf";
It’s working fine except that if there are any non-latin characters in the generated filename they get incorrectly outputted.
e.g the letter ä will be output as ä in thge filename.How can I get it to generate the filename correctly? Special characters are all correctly rendered throughout the site, it’s only export filenames which are a problem