Re: RE: Wide character in print error

"Mr. Shawn H. Corey" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.pdfapi2
Message-ID <[email protected]>
Tim Turner wrote:
> Hello,
> 
> I have a script that uses PDF::API2 to generate a PDF.  It works fine on one
> server.
> On another server it generates a corrupted file error.  The web server error
> log has an entry for that script and says the error is "Wide character in
> print"...
> 
> Anyone run into this or know what it is referring to.  I've looked at the
> line it mentions and I think it happened way before as the line it refers to
> is not relevant.
> 

Yes.

If you are running perl 5.6.+ to 5.8.0-, PDF::API2 will not work.

Well, that's quite right.

Perl before 5.6 can work if there are no Unicode characters in your 
files.  Perl 5.8+ knows all about Unicode, but perl 5.6.+ has to be told 
that there are Unicode characters in your data.

On every machine you want to execute your code, run `perl -v`.  If it 
says the version is less than 5.8.0, post your results.

Your error message means that your program is outputting Unicode, that 
is, UTF-8, but your terminal does not accept it.


-- 
Just my 0.00000002 million dollars worth,
    Shawn

"For the things we have to learn before we can do them, we learn by 
doing them."
   Aristotle
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.