Reputation: 2132
I am using drawText of Zend PDF to write to PDF files. I am not able to write certain characters despite using encoding.
$page->drawText('González '.' '.' Memişoğlu', 192, 600, $encoding);
I've tried several different types of encoding but none prints 'Memişoğlu' properly. 'González' works fine with UTF-8.
These are the results (what is printed in the PDF) for each encoding type I've tried
Windows-1254 - MemiÅŸoÄŸlu
Windows-1250 - MemioÄlu
Windows-1252 - MemiÅŸoÄŸlu
UTF-8 - Memiolu
What kind of encoding should I use, or is there another step to print the characters properly in the PDF?
Thanks.
EDIT: My pdf is written using Helvetica, so it possible that these characters are not available in the font.
Upvotes: 0
Views: 227