Displaying UTF characters in the FPDF

It is very easy to show UTF characters in a FPDF generated PDF file. Just use the following conversion function and it will work. Assume you have initialized the FPDF class to $pdf variable and you want to print the string stored in $name variable: $pdf->Write(iconv(“UTF-8”, “ISO-8859-1”, $name)); It worked for me.