in reply to ( PDF::EasyPDF ) encoding problem
From a quick look at the PDF::EasyPDF source, I'd say it doesn't have any support for unicode at all...
So, try to Encode::encode() your $string in IsoLatin1 (aka "iso-8859-1") before you pass it to the ->text() method. Also, you'd need use utf8; if you have literal strings in your source code (like in your example) and are using a Unicode editor (which I suppose you are, otherwise you wouldn't be getting the results you're currently seeing...). This is required to tell Perl that the source is in UTF-8.
(Of course this approach would only work for characters that are actually encodable in IsoLatin1, like "é"...)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: ( PDF::EasyPDF ) encoding problem
by lepetitalbert (Abbot) on Sep 07, 2009 at 19:49 UTC | |
by almut (Canon) on Sep 07, 2009 at 22:36 UTC |
In Section
Seekers of Perl Wisdom