simdex
asked on
FPDF (PHP class for generating PDFs): Problem with Chinese character set – cannot properly print Chinese characters
Here is the problem:
We are using FPDF (a PHP class) to create PDF documents in a PHP script. We are able to write most European languages like English, Spanish, etc., but when we try to write Chinese characters, it does not work. It only prints garbage characters in the PDF file (with UTF-8). We know this has to do with character encoding. In addition to UTF-8, we have tried Chinese character encoding GB18030, which totally blanks out the PDF, with no output at all.
Our developers already looked at these links/resources, but they didn't help:
http://blogs.adobe.com/jhsia/2005/09/how_to_create_p.html
http://stackoverflow.com/questions/8737772/tcpdf-encode-chinese-character
http://stackoverflow.com/questions/14382868/html2pdf-with-tcpdf-not-rendering-chinese-characters-in-final-pdf-document
Any ideas? Any thoughts are greatly appreciated. Thank you!
We are using FPDF (a PHP class) to create PDF documents in a PHP script. We are able to write most European languages like English, Spanish, etc., but when we try to write Chinese characters, it does not work. It only prints garbage characters in the PDF file (with UTF-8). We know this has to do with character encoding. In addition to UTF-8, we have tried Chinese character encoding GB18030, which totally blanks out the PDF, with no output at all.
Our developers already looked at these links/resources, but they didn't help:
http://blogs.adobe.com/jhsia/2005/09/how_to_create_p.html
http://stackoverflow.com/questions/8737772/tcpdf-encode-chinese-character
http://stackoverflow.com/questions/14382868/html2pdf-with-tcpdf-not-rendering-chinese-characters-in-final-pdf-document
Any ideas? Any thoughts are greatly appreciated. Thank you!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.laprbass.com/RAY_tcpdf_image_position.php
Open in new window