Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: ( PDF::EasyPDF ) encoding problem

by moritz (Cardinal)
on Sep 07, 2009 at 12:28 UTC ( [id://793938]=note: print w/replies, xml ) Need Help??


in reply to ( PDF::EasyPDF ) encoding problem

I tried to add things like :
use utf8; use open ':std' => ':utf8'; utf8::encode($string);

with no luck

Don't just randomly add stuff that is related to the problem, but try to understand how encodings are handled in Perl, and act accordingly.

If PDF::EasyPDF follows the usually model of receiving decoded text strings, and your strings come from literals in the source file, a simple use utf8: should be enough.

But this paragraph in the documentation is somewhat discouraging:

BUGS

None known, but the methods do relatively little sanity checking, and there is absolutely no encoding yet for text (so it's probably impossible to print parentheses, for example).

So if you can't even print all ASCII characters, I'd be surprised if it worked reliably for non-ASCII characters.

Perl 6 - links to (nearly) everything that is Perl 6.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://793938]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-24 22:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found