Search code examples
phpcharacter-encodingpdf-generationfpdf

unable to print a greek character in pdf using php script & fpdf


while trying to print a greek character 'φ' I get the following character printed on the pdf 'φ'


Solution

  • You'll need to use the TFPDF extension of the FPDF project. TFPDF uses multi-byte string functions and writes its output with a UTF-8 encoding, while FPDF does not.

    See:

    http://fpdf.org/en/script/script92.php