Eurosign (€) in Zend_Pdf

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Eurosign (€) in Zend_Pdf

GJ Bogaerts
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Eurosign (€) in Zend_Pdf

Dario Zamuner
I resolved with
html_entity_decode("€", ENT_COMPAT, "UTF-8")
as suggested in a comment HERE

Regards
Dario

GJ Bogaerts wrote
I'm trying to insert the euro-sign € (html-entity: €) in a textstring in a pdf generated by Zend_Pdf.

The problem is that the sign won't show at all. I've tried:
$this->_page1->drawText('€ 5300', 500, 20, "UTF-8");
and also:
$this->_page1->drawText(utf8_encode('€ ') . '5300', 500, 20, "UTF-8");

Other extended ascii-characters, such as ñ or á, do show up normally using the second method.
Just the euro-sign keeps giving me problems. I'm using standard fonts (Arial, Courier etc) that are present on the server.

Thanks for any help!

GJ
Reply | Threaded
Open this post in threaded view
|

Re: Eurosign (€) in Zend_Pdf

GJ Bogaerts
CONTENTS DELETED
The author has deleted this message.