euro sign in invoice pdf
Posted 07 June 2011 - 09:54 AM
Posted 07 June 2011 - 11:55 AM
Edited by ikbel, 07 June 2011 - 11:57 AM.
Posted 08 June 2011 - 12:17 AM
1) str_replace("\r",'',$txt) is getting rid of carriage return characters. What have you broken by eliminating that?
2) eregi_replace is a deprecated function and as soon as you go to PHP 5.3 you're going to get warnings. You should be using preg_replace.
3) chr(128) (x80) is applicable only to Windows-1252 character encoding (so-called "Smart Quotes" from Micro$oft). Beware of using it anywhere else, and make sure you know what character encodings are being used to create the PDF. As long as everything is consistent (the hard-coded Euro in the string, the replacement code, and what the PDF software is expecting), you're probably safe, but you'll be left twisting in the breeze if encodings change.
Posted 28 November 2011 - 06:00 PM
Posted 29 November 2011 - 04:30 AM