Perk/Tk font/encoding problems?
fluff
created: 2006-01-01 13:39:38
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

Re: Perk/Tk font/encoding problems?
created: 2006-01-01 14:37:02
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
Re^2: Perk/Tk font/encoding problems?
created: 2006-01-01 15:40:51
Purrfect! An upgrade of PAR was all I needed. Many thanks!

perlmonks.org content © perlmonks.org and fluff, marto

prlmnks.org © 2006 edmund von der burg (eccles & toad)

v 0.03