If anyone can provide more on this issue, which I'm also dealing with in a Solaris environment, I would greatly appreciate it. We have multiple Solaris servers and supposedly libiconv is installed consistently on all of them; the iconv settings reported by PHP are consistent among servers; but the newest servers exhibit the problem discussed in this thread. All calls to drawText() fail silently. I tried modifying the Simple.php encodeString() method as suggested here but it had no effect -- I added something like
if ($charEncoding == 'ISO-8859-1') return $string; Thanks, Nick Eby Ralph Schindler-2 wrote: > > That is indeed odd, I'll ask Stas if he knows anything about the iconv > implementation on this type of machine. > > What we've seen on AIX/Ibm I5 machines is that the iconv implementation > uses different names for various character sets- > > The other issue might be that the endianness of that machine is > different than a linux/mac/windows machine. I've seen this cause issues > in PDF as well. > > I'll ask around and get back with you. > > Sorry you are running into this issue, it's a complicated one. At > current, feel free to patch the library as its your best solution as of > today. > > -ralph > > Shadedream wrote: >> Ralph, >> >> The PHP_OS string is returning SunOS. I've included the iconv portion of >> phpinfo below: >> >> iconv support enabled >> iconv implementation unknown >> iconv library version unknown >> >> Directive Local Value Master Value >> iconv.input_encoding ISO-8859-1 ISO-8859-1 >> iconv.internal_encoding ISO-8859-1 ISO-8859-1 >> iconv.output_encoding ISO-8859-1 ISO-8859-1 >> >> I'm guessing it has to do with the two "unknowns" up there but I'm not >> entirely sure as I'm not that familiar with iconv. >> >> The "quick fix" I got from a coworker to get testing my implementation >> involved modifying the Zend_Pdf_Resource_Font_Simple class's encodeString >> method to just pass back a string if it was in iso-8859-1 encoding which >> gets it working but is less than ideal as I'd rather not have to hack the >> Zend installation (I'll forget to do it if I upgrade, etc). >> >> -Nick > > -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Zend-PDF-drawText-and-blank-PDF-files-tp1589208p2530546.html Sent from the Zend Framework mailing list archive at Nabble.com.
