Blog
0

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.

Popular posts

Random Testimonial

  • ~ Elance ID – catchlight

    "This was a seemingly small job, but a very important one and one that needed to be done right. A certain level of knoowledge is required for this type of task and nirvaat carried it out beautyifully. Nice work and I'd reccommend this provider to anyone working with"

  • Read more testimonials »
  • New post: Fix Error 0×80070424 on windows http://t.co/bmK0AZpH 169 days ago
  • New post: Configuring Horder Vacation Responder in Plesk 9 http://t.co/gcsPNIVv 193 days ago
  • New post: Wordpress update issue on Plesk http://t.co/dUxcjpgR 198 days ago
  • I’ve just taken the WordPress 2012 User and Developer Survey, have you? http://t.co/G20SmrMr (pass it on!) 225 days ago
  • New post: Mobile device emulators to test web page display http://t.co/jmgc0x99 234 days ago