Hi,
I am using the certificate add-on on Moodle 2.4.
I have created a new certificate type, so a new config.php file in order to customize the appearance and the labels that will appear in the certif.
Everything works fine, except when I want to print strings containing accented characters (à, é, è...). Then the entire string does not appear in the certif, not only the character itself.
The pdf is defined as UTF-8:
$pdf = new TCPDF($certificate->orientation, 'mm', 'Letter', true, 'UTF-8', false);
...
$text = 'a terminé avec succès la formation';
certificate_print_text($pdf, $x, $line_y, 'C', 'Helvetica', 'B', 14, $text);
Would you have any idea to resolve this?
I tried to despecialize the characters using '\' (ex: 'termin\é'), but it did not work.
Thanks in advance!