Tiny addition for encodings supporting the EUR symbol.

The € symbol is also part of the updated ISO 8859-15 encoding.

Paddy
 
Pádraic Brady

http://blog.astrumfutura.com
http://www.patternsforphp.com
OpenID Europe Foundation Member-Subscriber


----- Original Message ----
From: Alexander Veremyev <[EMAIL PROTECTED]>
To: ArticSun <[EMAIL PROTECTED]>; fw-general@lists.zend.com
Sent: Friday, September 21, 2007 7:11:00 PM
Subject: RE: [fw-general] Euro sign in Zend_Pdf.

Hi,



You could find some info here http://framework.zend.com/issues/browse/ZF-588



It's also possible, that you have to specify string encoding:

--------------------------

$pdf->pages[] = ($page = $pdf->newPage('A4'));



$font = Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_HELVETICA);

$page->setFont($font, 20);

$page->drawText('(€) symbol', 100, 510, 'UTF-8');

$page->drawText('(' . chr(128) . ') symbol', 100, 470, 'Windows-1252');

--------------



With best regadrs,

   Alexander Veremyev. 



> -----Original Message-----

> From: ArticSun [mailto:[EMAIL PROTECTED] 

> Sent: Friday, September 21, 2007 1:03 PM

> To: fw-general@lists.zend.com

> Subject: [fw-general] Euro sign in Zend_Pdf.

> 

> 

> Hi all!

> 

>    I was trying to add an euro sign (€) into the Zend 

> Framework but it didn't appear. Now I've found some 

> information on the internet that this is due to somekind of 

> character map Zend_Pdf uses. There was a solution to alter 

> the Zend_Pdf class itself, but I would like to know if there 

> is a way without altering the library?

> 

> I believe this isn't fixed yet, is it in for a future release?

> 

> Thanks!

> 

> Chris

> --

> View this message in context: 

> http://www.nabble.com/Euro-sign-in-Zend_Pdf.-tf4492700s16154.h

> tml#a12813237

> Sent from the Zend Framework mailing list archive at Nabble.com.

> 

> 

> No virus found in this incoming message.

> Checked by AVG Free Edition. 

> Version: 7.5.487 / Virus Database: 269.13.27/1020 - Release 

> Date: 20.09.2007 12:07

>  

> 



No virus found in this outgoing message.

Checked by AVG Free Edition. 

Version: 7.5.487 / Virus Database: 269.13.27/1020 - Release Date: 20.09.2007 
12:07

 








      
____________________________________________________________________________________
Tonight's top picks. What will you watch tonight? Preview the hottest shows on 
Yahoo! TV.
http://tv.yahoo.com/ 

Reply via email to