Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: PDF::Template and character encodings

by geektron (Curate)
on Oct 15, 2007 at 21:53 UTC ( #645040=note: print w/replies, xml ) Need Help??


in reply to Re: PDF::Template and character encodings
in thread PDF::Template and character encodings

i just did, and not only did that setting mangle the PDF output, it didn't address the root problem ... :-\
  • Comment on Re^2: PDF::Template and character encodings

Replies are listed 'Best First'.
Re^3: PDF::Template and character encodings
by shmem (Chancellor) on Oct 15, 2007 at 22:15 UTC
    That might actually be a sign of progress. Is the PDF_findfont error still thrown? If it isnt, if it's different, there might be something wrong with your input files.

    Do you mind posting a condensed example showing the problem? It's far easier to help if there's something to see, and not being forced at stabbing blindfolded into the fog (guessing wildly, that is).

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
      I've updated the original node with a trimmed-down xml template. Essentially,  <VAR NAME='LAST_NAME'> is the problem; it contains the (misrendered) accented character.

      Changing the encoding to iso8859-1 *does* fix the PDF_findfont error, but it doesn't fix the problem with the accented characters.

        As per your OP, do you really get "~Aj", or is it per chance æ (which is a à á - a grave acute) ?

        If that is the case, you are getting utf-8 from your database - run that data through Encode. Alternatively, try using iso10646-1 (or utf8 without the hyphen).

        Using those fonts might fail since it seems likely that the strings coming from the database don't have the internal UTF8 flag set.

        --shmem

        _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                      /\_¯/(q    /
        ----------------------------  \__(m.====·.(_("always off the crowd"))."·
        ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://645040]
help
Chatterbox?
marioroy I once fell asleep while drive and had no collection on how I exited the ramp. Then called my wife not knowing where I was totally lost.
marioroy At a large firm, had to awaken a security guy a few times so that nobody would catch him sleeping.
marioroy On a large dairy farm, almost went off the road with a 10 wheeler from exhaustion. On the farm, almost went off the silo with a big tractor. At the Fransiscan monastery, almost slipped off the dome while painting it.

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2017-05-29 08:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?