From f054336d45af51fc375e6f81cbd23600028efe00 Mon Sep 17 00:00:00 2001 From: Kordan Date: Fri, 26 Jan 2024 11:13:06 +0100 Subject: [PATCH] Polish vowels in PDF MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Using moodle in Polish language so, writing item contents in Polish, causes the pdf of a single response with special chars like: ąčęėįšųūž to be reported as ????????. Changing the PDF font to freesans, seems to fix the problem. Reference: https://stackoverflow.com/questions/5333702/tcpdf-utf-8-symbols-not-showing-up?rq=4 --- classes/submissions_list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/submissions_list.php b/classes/submissions_list.php index 121fa605561..0b050715732 100644 --- a/classes/submissions_list.php +++ b/classes/submissions_list.php @@ -1808,7 +1808,7 @@ private function replace_http_url($content) { * @return void */ private function add_pdf_details($pdf, $user, $timecreated, $timemodified) { - $pdf->SetFont('helvetica', '', 12); + $pdf->SetFont('freesans', '', 12); // Set document information. $pdf->SetCreator(PDF_CREATOR);