From 2115a56aa6684f2b511d87ee58b2fe5671f4163b 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 d698a6c34dc..d3b7b8107c4 100644 --- a/classes/submissions_list.php +++ b/classes/submissions_list.php @@ -1807,7 +1807,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);