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

Hi, I have an application in Tk, but it doesn't recognize the special spanish chars, does somebody know why?, it appears garbage

Replies are listed 'Best First'.
Re: spanish special chars
by polypompholyx (Chaplain) on Sep 21, 2005 at 18:04 UTC

    use strict; use Tk; my $mw = MainWindow->new(); $mw->Button( -text => 'Hola compaņero!' )->pack; MainLoop;

    Works for me™. What encoding are you using? Codepoint \x{a4} will display as an n-tilde in a Windows cmd prompt, but in utf8 and Tk, it's a generic currency sign. Codepoint \x{f1} is the 'proper' Tk/utf8 n-tilde, but will display as a plus/minus sign in cmd.

Re: spanish special chars
by Roy Johnson (Monsignor) on Sep 21, 2005 at 17:35 UTC
    A complete guess: the font you're using doesn't implement Spanish chars. What platform are you running on, and what font are you using?

    Caution: Contents may have been coded under pressure.
Re: spanish special chars
by ambrus (Abbot) on Sep 21, 2005 at 21:43 UTC

    No. Please give us more information. The reason could be anything.