- We can support German characters such as Ä, Ö, Ü, ä, ü,ö, ß in magento PDF generation. Noramlly it won't support.
- In magento pdf generation the characters or text echo like below,
$page->drawText('Test Message', 530, 250, 'UTF-8');
- But if we tried like this,
$page->drawText(Mage::helper('sales')->__('Geschäftsführer: Jörg Blümel'), 35, 25, 'UTF-8');
- it won't display the german characters, for this we need to change the character format 'UTF-8' to 'CP1252' .
$page->drawText(Mage::helper('sales')->__('Geschäftsführer: Jörg Blümel'), 35, 25, 'CP1252');
- In magento pdf generation the characters or text echo like below,
$page->drawText('Test Message', 530, 250, 'UTF-8');
- But if we tried like this,
$page->drawText(Mage::helper('sales')->__('Geschäftsführer: Jörg Blümel'), 35, 25, 'UTF-8');
- it won't display the german characters, for this we need to change the character format 'UTF-8' to 'CP1252' .
$page->drawText(Mage::helper('sales')->__('Geschäftsführer: Jörg Blümel'), 35, 25, 'CP1252');
No comments:
Post a Comment