fluff has asked for the wisdom of the Perl Monks concerning the following question:

hi there,

I have a problem with a small application I've written. Basicly it's a variant of shoutbox-client but written for my site. But it seams as if any Perl/Tk-application I develop I run into this problem, so here it is:

When I've written my Tk-application I run it on my dev-computer and it works just like it should. But if I use pp and then transfer the application to another win32-machine, then there's something wrong with fonts/encoding since all chars ends up looking like squares. I've taken two screenshots, the first one is the way it should look and the second way is the way it looks on the other computer.

Now I've only been able to test it on three machines. My machine which run a swedish version of winxp and two other machines which run an english version. The both english machines does display the text in the fancy square way.

To eliminate the possibilities of dirt behind the buttons I've also created the "Hello World" example from O'Reillys "Mastering Perl/Tk" and again I have the same problem.

Any clues or ideas? I've searched pm for "tk font problem" and "tk encoding problem" and such.

Screenshot 1 - Working like it should...
Screenshot 2 - NOT working like it should

TIA!

/fluff

Replies are listed 'Best First'.
Re: Perk/Tk font/encoding problems?
by marto (Cardinal) on Jan 01, 2006 at 19:37 UTC
    Hi fluff,

    Which version of PAR do you have?
    A while back there was a problem with versions pre 0.85 which cause this problem. Installing an upto date version of PAR should help.
    If you have a recent version of PAR try adding use Encode::Unicode; to your code.

    Hope this helps.

    Martin
      Purrfect! An upgrade of PAR was all I needed. Many thanks!